From 572b856dfdd4a4aabc975eddd6a64b92bd108720 Mon Sep 17 00:00:00 2001 From: mratsim Date: Tue, 13 Nov 2018 19:19:10 +0100 Subject: [PATCH] empty start at true --- beacon_chain/state_transition.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/state_transition.nim b/beacon_chain/state_transition.nim index 2ede3b534..a447e501f 100644 --- a/beacon_chain/state_transition.nim +++ b/beacon_chain/state_transition.nim @@ -59,7 +59,7 @@ func process_block*(active_state: ActiveState, crystallized_state: CrystallizedS # Derive a group public key by adding the public keys of all of the attesters in attestation_indices for whom the corresponding bit in attester_bitfield (the ith bit is (attester_bitfield[i // 8] >> (7 - (i %8))) % 2) equals 1 var agg_pubkey: BLSPublicKey - var empty: bool + var empty = true for attester_idx in attestation_indices.committee: if attester_idx in attestation.attester_bitfield: let validator = crystallized_state.validators[attester_idx]