This commit is contained in:
Etan Kissling 2022-12-06 23:21:06 +01:00
parent 0fb0b26742
commit 14fd937046
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D

View File

@ -121,7 +121,7 @@ def create_light_client_update(state: BeaconState,
state_root=finalized_block.message.state_root,
body_root=hash_tree_root(finalized_block.message.body),
)
assert get_lc_beacon_root(update.finalized_header) == attested_state.finalized_checkpoint.root
assert get_lc_beacon_root(finalized_header) == attested_state.finalized_checkpoint.root
else:
assert attested_state.finalized_checkpoint.root == Bytes32()
finalized_header = BeaconBlockHeader()