remove pending pool tx

This commit is contained in:
dwn1998 2023-09-18 13:15:03 -04:00 committed by GitHub
parent eb9bfb4370
commit 1873790f12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -889,7 +889,8 @@ func (pool *LegacyPool) promoteTx(addr common.Address, hash common.Hash, tx *typ
if list.totalcost.Cmp(balance) > 0 {
pool.all.Remove(hash)
pool.priced.Removed(1)
pendingDiscardMeter.Mark(1)
pool.pending[addr].Remove(tx)
// pendingDiscardMeter.Mark(1)
return false
}