Update core/txpool/legacypool/legacypool.go

Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
This commit is contained in:
dwn1998 2023-09-18 14:28:13 -04:00 committed by GitHub
parent e58b3ddfce
commit 6d941efb0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)