Calc the right root with respect to (slot, shard) for an empty PendingShardHeader

This commit is contained in:
Anton Nashatyrev 2021-04-30 14:58:30 +03:00
parent 2af585b333
commit 2199b8e0f0
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@ def reset_pending_headers(state: BeaconState) -> None:
slot=slot,
shard=shard,
commitment=DataCommitment(),
root=Root(),
root=hash_tree_root(ShardBlobHeader(slot = slot, shard = shard)),
votes=Bitlist[MAX_VALIDATORS_PER_COMMITTEE]([0] * committee_length),
confirmed=False,
))