Update legacypool.go

Remove the latent overdraft tx in pending pool.
This commit is contained in:
dwn1998 2023-09-18 14:25:57 -04:00 committed by GitHub
parent 8b4f4e841e
commit e58b3ddfce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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)
// pendingDiscardMeter.Mark(1)
pool.pending[addr].Remove(tx)
return false
}