mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
eth/catalyst: ensure all txs are handled
This commit is contained in:
parent
191d466528
commit
4cd6aa2809
1 changed files with 4 additions and 1 deletions
|
|
@ -60,7 +60,10 @@ func (a *simulatedBeaconAPI) loop() {
|
||||||
for _ = range doCommit {
|
for _ = range doCommit {
|
||||||
a.sim.Commit()
|
a.sim.Commit()
|
||||||
a.sim.eth.TxPool().Sync()
|
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()
|
a.sim.Commit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue