diff --git a/eth/catalyst/simulated_beacon_api.go b/eth/catalyst/simulated_beacon_api.go index 20cf8325ba..da95be18d3 100644 --- a/eth/catalyst/simulated_beacon_api.go +++ b/eth/catalyst/simulated_beacon_api.go @@ -60,7 +60,10 @@ func (a *simulatedBeaconAPI) loop() { for _ = range doCommit { a.sim.Commit() a.sim.eth.TxPool().Sync() - if executable, _ := a.sim.eth.TxPool().Stats(); executable > 0 { + for { + if executable, _ := a.sim.eth.TxPool().Stats(); executable == 0 { + break + } a.sim.Commit() } }