preserve historical_summaries in capella to eip4844 fork (#4492)

This commit is contained in:
tersec 2023-01-11 17:21:16 +00:00 committed by GitHub
parent 3e565e9878
commit b14106b72b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1194,7 +1194,10 @@ func upgrade_to_eip4844*(cfg: RuntimeConfig, pre: capella.BeaconState):
# Withdrawals
next_withdrawal_index: pre.next_withdrawal_index,
next_withdrawal_validator_index: pre.next_withdrawal_validator_index
next_withdrawal_validator_index: pre.next_withdrawal_validator_index,
# Deep history valid from Capella onwards
historical_summaries: pre.historical_summaries
)
template isValidInState*(idx: ValidatorIndex, state: ForkyBeaconState): bool =