Update core/txpool/legacypool/legacypool.go

Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
pull/28076/head
dwn1998 1 year ago committed by GitHub
parent e58b3ddfce
commit 6d941efb0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/txpool/legacypool/legacypool.go

@ -884,7 +884,7 @@ func (pool *LegacyPool) promoteTx(addr common.Address, hash common.Hash, tx *typ
return false
}
//Check balance for Overdraft
// Check balance for overdraft
balance := pool.currentState.GetBalance(addr)
if list.totalcost.Cmp(balance) > 0 {
pool.all.Remove(hash)

Loading…
Cancel
Save