eth/catalyst: fix lint

This commit is contained in:
lightclient 2024-08-19 09:12:28 -06:00
parent 972c05531d
commit 201e1bdfd5
No known key found for this signature in database
GPG key ID: 75C916AFEE20183E

View file

@ -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