Update core/txpool/legacypool/legacypool.go
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
This commit is contained in:
parent
e58b3ddfce
commit
6d941efb0b
|
@ -884,7 +884,7 @@ func (pool *LegacyPool) promoteTx(addr common.Address, hash common.Hash, tx *typ
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check balance for Overdraft
|
// Check balance for overdraft
|
||||||
balance := pool.currentState.GetBalance(addr)
|
balance := pool.currentState.GetBalance(addr)
|
||||||
if list.totalcost.Cmp(balance) > 0 {
|
if list.totalcost.Cmp(balance) > 0 {
|
||||||
pool.all.Remove(hash)
|
pool.all.Remove(hash)
|
||||||
|
|
Loading…
Reference in New Issue