mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 06:53:46 +00:00
parent
d219e9b005
commit
8d2920bbc4
1 changed files with 4 additions and 0 deletions
|
|
@ -71,6 +71,10 @@ func (a *simulatedBeaconAPI) loop() {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
a.sim.Commit()
|
a.sim.Commit()
|
||||||
|
// Avoid a race condition where tx pool is terminated during Commit.
|
||||||
|
if err := a.sim.eth.TxPool().Sync(); err != nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue