mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Update blobpool.go
This commit is contained in:
parent
7805e203f0
commit
88c4703e28
1 changed files with 2 additions and 2 deletions
|
|
@ -1795,8 +1795,8 @@ func (p *BlobPool) add(tx *types.Transaction) (err error) {
|
|||
}
|
||||
// Update the transaction index
|
||||
p.index[from][offset] = meta
|
||||
p.spent[from] = new(uint256.Int).Sub(p.spent[from], prev.costCap)
|
||||
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)
|
||||
|
||||
p.lookup.untrack(prev)
|
||||
p.lookup.track(meta)
|
||||
|
|
|
|||
Loading…
Reference in a new issue