From c77ac209170637d79421ffb8be6da0ef1f15eca3 Mon Sep 17 00:00:00 2001 From: maskpp Date: Tue, 17 Sep 2024 16:21:32 +0800 Subject: [PATCH] fix bug --- core/txpool/blobpool/blobpool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index eeee568c8b..bc4f510582 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -1035,7 +1035,7 @@ func (p *BlobPool) SetGasTip(tip *big.Int) { nonces = make([]uint64, len(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) delete(p.lookup, tx.hash) ids[j], nonces[j] = tx.id, tx.nonce