mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
eth/catalyst: add comment about spin loop
This commit is contained in:
parent
bc9f01c3a5
commit
972c05531d
1 changed files with 5 additions and 0 deletions
|
|
@ -61,6 +61,11 @@ 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()
|
||||||
|
|
||||||
|
// It's worth noting that in case a tx ends up in the pool listed as
|
||||||
|
// "executable", but for whatever reason the miner does not include it in
|
||||||
|
// a block -- maybe the miner is enforcing a higher tip than the pool --
|
||||||
|
// this code will spinloop.
|
||||||
for {
|
for {
|
||||||
if executable, _ := a.sim.eth.TxPool().Stats(); executable == 0 {
|
if executable, _ := a.sim.eth.TxPool().Stats(); executable == 0 {
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue