mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
add withdrawals to witness
This commit is contained in:
parent
e2ac75246e
commit
faf7fa052c
1 changed files with 3 additions and 0 deletions
|
|
@ -352,6 +352,9 @@ func (beacon *Beacon) Finalize(chain consensus.ChainHeaderReader, header *types.
|
|||
amount := new(big.Int).SetUint64(w.Amount)
|
||||
amount = amount.Mul(amount, big.NewInt(params.GWei))
|
||||
state.AddBalance(w.Address, amount)
|
||||
|
||||
// The returned gas is not charged
|
||||
state.Witness().TouchAddressOnWriteAndComputeGas(w.Address[:])
|
||||
}
|
||||
// No block reward which is issued by consensus layer instead.
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue