core: change comment to match code more closely (#16963)

This commit is contained in:
Daniel Liu 2024-05-08 12:53:19 +08:00
parent 4f0f6e08c7
commit 859308c03f

View file

@ -1259,7 +1259,7 @@ func (pool *TxPool) demoteUnexecutables() {
log.Trace("Demoting pending transaction", "hash", hash)
pool.enqueueTx(hash, tx)
}
// If there's a gap in front, warn (should never happen) and postpone all transactions
// If there's a gap in front, alert (should never happen) and postpone all transactions
if list.Len() > 0 && list.txs.Get(nonce) == nil {
for _, tx := range list.Cap(0) {
hash := tx.Hash()