This commit is contained in:
Etan Kissling 2024-07-09 21:22:30 +02:00
parent a86eeb3ee0
commit 82fe862a47
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 4 additions and 2 deletions

View File

@ -89,11 +89,13 @@ def create_update(spec,
if with_next:
update.next_sync_committee = attested_state.next_sync_committee
update.next_sync_committee_branch = spec.compute_merkle_proof(attested_state, latest_next_sync_committee_gindex(spec))
update.next_sync_committee_branch = spec.compute_merkle_proof(
attested_state, latest_next_sync_committee_gindex(spec))
if with_finality:
update.finalized_header = spec.block_to_light_client_header(finalized_block)
update.finality_branch = spec.compute_merkle_proof(attested_state, latest_finalized_root_gindex(spec))
update.finality_branch = spec.compute_merkle_proof(
attested_state, latest_finalized_root_gindex(spec))
update.sync_aggregate, update.signature_slot = get_sync_aggregate(
spec, attested_state, num_participants)