mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-13 20:24:22 +00:00
Calc the right root with respect to (slot, shard) for an empty PendingShardHeader
This commit is contained in:
parent
2af585b333
commit
2199b8e0f0
@ -763,7 +763,7 @@ def reset_pending_headers(state: BeaconState) -> None:
|
|||||||
slot=slot,
|
slot=slot,
|
||||||
shard=shard,
|
shard=shard,
|
||||||
commitment=DataCommitment(),
|
commitment=DataCommitment(),
|
||||||
root=Root(),
|
root=hash_tree_root(ShardBlobHeader(slot = slot, shard = shard)),
|
||||||
votes=Bitlist[MAX_VALIDATORS_PER_COMMITTEE]([0] * committee_length),
|
votes=Bitlist[MAX_VALIDATORS_PER_COMMITTEE]([0] * committee_length),
|
||||||
confirmed=False,
|
confirmed=False,
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user