Skip to content

Commit 88c4703

Browse files
authored
Update blobpool.go
1 parent 7805e20 commit 88c4703

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/txpool/blobpool/blobpool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,8 +1795,8 @@ func (p *BlobPool) add(tx *types.Transaction) (err error) {
17951795
}
17961796
// Update the transaction index
17971797
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)
1798+
spent := new(uint256.Int).Sub(p.spent[from], prev.costCap)
1799+
p.spent[from] = spent.Add(spent, meta.costCap)
18001800

18011801
p.lookup.untrack(prev)
18021802
p.lookup.track(meta)

0 commit comments

Comments
 (0)