mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 21:45:15 -05:00
Add historical_summaries setup to fork.md
This commit is contained in:
@@ -129,8 +129,10 @@ def upgrade_to_capella(pre: bellatrix.BeaconState) -> BeaconState:
|
||||
# Execution-layer
|
||||
latest_execution_payload_header=latest_execution_payload_header,
|
||||
# Withdrawals
|
||||
next_withdrawal_index=WithdrawalIndex(0),
|
||||
next_withdrawal_validator_index=ValidatorIndex(0),
|
||||
next_withdrawal_index=WithdrawalIndex(0), # [New in Capella]
|
||||
next_withdrawal_validator_index=ValidatorIndex(0), # [New in Capella]
|
||||
# Deep history valid from Capella onwards
|
||||
historical_summaries=List[HistoricalSummary, HISTORICAL_ROOTS_LIMIT]([]), # [New in Capella]
|
||||
)
|
||||
|
||||
return post
|
||||
|
||||
@@ -131,6 +131,8 @@ def upgrade_to_eip4844(pre: capella.BeaconState) -> BeaconState:
|
||||
# Withdrawals
|
||||
next_withdrawal_index=pre.next_withdrawal_index,
|
||||
next_withdrawal_validator_index=pre.next_withdrawal_validator_index,
|
||||
# Deep history valid from Capella onwards
|
||||
historical_summaries=pre.historical_summaries,
|
||||
)
|
||||
|
||||
return post
|
||||
|
||||
Reference in New Issue
Block a user