From dca6d3370a0c0095133dd0fddc32b3052fb61d39 Mon Sep 17 00:00:00 2001 From: Anton Nashatyrev Date: Fri, 30 Apr 2021 15:21:51 +0300 Subject: [PATCH] Search winning 'empty' PendingShardHeader index by the empty DataCommitment instead of zero Root --- specs/sharding/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index df52cce41..68f6ccaa2 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -701,7 +701,7 @@ def process_pending_headers(state: BeaconState) -> None: winning_index = voting_balances.index(max(voting_balances)) else: # If no votes, zero wins - winning_index = [c.root for c in candidates].index(Root()) + winning_index = [c.commitment for c in candidates].index(DataCommitment()) candidates[winning_index].confirmed = True for slot_index in range(SLOTS_PER_EPOCH): for shard in range(SHARD_COUNT):