mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
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:
parent
e71487b033
commit
4d27fd589e
1 changed files with 6 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
|
|
|||
Loading…
Reference in a new issue