This commit is contained in:
maskpp 2024-09-17 16:21:32 +08:00
parent d5636a0ca7
commit c77ac20917

View file

@ -1035,7 +1035,7 @@ func (p *BlobPool) SetGasTip(tip *big.Int) {
nonces = make([]uint64, len(dropTxs)) nonces = make([]uint64, len(dropTxs))
) )
for j, tx := range dropTxs { for j, tx := range dropTxs {
p.spent[addr] = new(uint256.Int).Sub(p.spent[addr], txs[i].costCap) p.spent[addr] = new(uint256.Int).Sub(p.spent[addr], tx.costCap)
p.stored -= uint64(tx.size) p.stored -= uint64(tx.size)
delete(p.lookup, tx.hash) delete(p.lookup, tx.hash)
ids[j], nonces[j] = tx.id, tx.nonce ids[j], nonces[j] = tx.id, tx.nonce