You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Execution: For every block, go over the withdrawals array and increase the balance of each account by the withdrawal amount
What needs to change:
Add withdrawals_root: Option<H256> to Header and other Header-like types
Add withdrawals: Vec<Withdrawal> (definition) to Block and other Block-like types
During header verification in Beacon Consensus, if we're in Shanghai, the withdrawals_root MUST be Some, and if we're not in Shanghai it MUST be None
After execution for a block, it should go over the array of withdrawals and directly update the balances of the accounts corresponding to each withdrawal. This means that withdrawal balances are applied at the END of the block after all txs for that block have been executed. Ref
Describe the feature request
Post-Shanghai, withdrawals are being enabled. This has the following implications:
What needs to change:
withdrawals_root: Option<H256>
toHeader
and other Header-like typeswithdrawals: Vec<Withdrawal>
(definition) toBlock
and other Block-like typeswithdrawals_root
MUST be Some, and if we're not in Shanghai it MUST be NoneAdditional context
Geth's changes: ethereum/go-ethereum@2a2b041#diff-89272f61e115723833d498a0acbe59fa2286e3dc7276a676a7f7816f21e248b7
The text was updated successfully, but these errors were encountered: