mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
added in some cuddling changes to address the linter / CI test fails
This commit is contained in:
parent
1e926cfad9
commit
7d765e03b0
2 changed files with 6 additions and 3 deletions
|
|
@ -512,7 +512,9 @@ func (l *txList) Filter(costLimit *uint256.Int, gasLimit uint64) (types.Transact
|
||||||
}
|
}
|
||||||
invalids = l.txs.filter(func(tx *types.Transaction) bool { return tx.Nonce() > lowest })
|
invalids = l.txs.filter(func(tx *types.Transaction) bool { return tx.Nonce() > lowest })
|
||||||
}
|
}
|
||||||
|
|
||||||
l.txs.reheap()
|
l.txs.reheap()
|
||||||
|
|
||||||
return removed, invalids
|
return removed, invalids
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -719,9 +719,10 @@ func (f *TxFetcher) rescheduleWait(timer *mclock.Timer, trigger chan struct{}) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*timer = f.clock.AfterFunc(f.txArrivalWait-time.Duration(now-earliest), func() {
|
*timer = f.clock.AfterFunc(
|
||||||
trigger <- struct{}{}
|
f.txArrivalWait-time.Duration(now-earliest),
|
||||||
})
|
func() { trigger <- struct{}{} },
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// rescheduleTimeout iterates over all the transactions currently in flight and
|
// rescheduleTimeout iterates over all the transactions currently in flight and
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue