mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
parent
d219e9b005
commit
8d2920bbc4
1 changed files with 4 additions and 0 deletions
|
|
@ -71,6 +71,10 @@ func (a *simulatedBeaconAPI) loop() {
|
|||
break
|
||||
}
|
||||
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