Update blobpool.go

This commit is contained in:
Justin 2025-11-26 23:51:13 +01:00 committed by GitHub
parent 7805e203f0
commit 88c4703e28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1795,8 +1795,8 @@ func (p *BlobPool) add(tx *types.Transaction) (err error) {
} }
// Update the transaction index // Update the transaction index
p.index[from][offset] = meta p.index[from][offset] = meta
p.spent[from] = new(uint256.Int).Sub(p.spent[from], prev.costCap) spent := new(uint256.Int).Sub(p.spent[from], prev.costCap)
p.spent[from] = new(uint256.Int).Add(p.spent[from], meta.costCap) p.spent[from] = spent.Add(spent, meta.costCap)
p.lookup.untrack(prev) p.lookup.untrack(prev)
p.lookup.track(meta) p.lookup.track(meta)