mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
eth/catalyst: fix lint
This commit is contained in:
parent
972c05531d
commit
201e1bdfd5
1 changed files with 2 additions and 2 deletions
|
|
@ -58,14 +58,14 @@ func (a *simulatedBeaconAPI) loop() {
|
||||||
// A background thread which signals to the simulator when to commit
|
// A background thread which signals to the simulator when to commit
|
||||||
// based on messages over doCommit.
|
// based on messages over doCommit.
|
||||||
go func() {
|
go func() {
|
||||||
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
|
// 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
|
// "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 --
|
// a block -- maybe the miner is enforcing a higher tip than the pool --
|
||||||
// this code will spinloop.
|
// this code will spinloopk.
|
||||||
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