We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7805e20 commit 88c4703Copy full SHA for 88c4703
core/txpool/blobpool/blobpool.go
@@ -1795,8 +1795,8 @@ func (p *BlobPool) add(tx *types.Transaction) (err error) {
1795
}
1796
// Update the transaction index
1797
p.index[from][offset] = meta
1798
- p.spent[from] = new(uint256.Int).Sub(p.spent[from], prev.costCap)
1799
- p.spent[from] = new(uint256.Int).Add(p.spent[from], meta.costCap)
+ spent := new(uint256.Int).Sub(p.spent[from], prev.costCap)
+ p.spent[from] = spent.Add(spent, meta.costCap)
1800
1801
p.lookup.untrack(prev)
1802
p.lookup.track(meta)
0 commit comments