eth/catalyst: abort dev mode block commit if shut down is triggered

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
This commit is contained in:
Jared Wasinger 2025-07-08 19:04:34 +09:00
parent e71487b033
commit 4d27fd589e

View file

@ -70,7 +70,12 @@ func (a *simulatedBeaconAPI) loop() {
if executable, _ := a.sim.eth.TxPool().Stats(); executable == 0 {
break
}
a.sim.Commit()
select {
case <-a.sim.shutdownCh:
return
default:
a.sim.Commit()
}
}
}
}()