carry over current and previous_sync_committee in Merge state upgrader, review from @djrtwo

This commit is contained in:
protolambda 2021-07-22 19:58:10 +02:00
parent 17fad2dea2
commit bb0848b6f6
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,9 @@ def upgrade_to_merge(pre: altair.BeaconState) -> BeaconState:
finalized_checkpoint=pre.finalized_checkpoint,
# Inactivity
inactivity_scores=pre.inactivity_scores,
# Sync
current_sync_committee=pre.current_sync_committee,
next_sync_committee=pre.next_sync_committee,
# Execution-layer
latest_execution_payload_header=ExecutionPayloadHeader(),
)