From b08d1d8d73fe1a05fa8a9fa442815f1dea259780 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Sun, 30 Jun 2019 20:13:27 -0500 Subject: [PATCH] fix associtivity in conditional --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index bf7aa4dd5..7d26c2dfe 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -665,7 +665,7 @@ def is_valid_indexed_attestation(state: BeaconState, indexed_attestation: Indexe if not len(set(bit_0_indices).intersection(bit_1_indices)) == 0: return False # Verify indices are sorted - if not bit_0_indices == sorted(bit_0_indices) and bit_1_indices == sorted(bit_1_indices): + if not (bit_0_indices == sorted(bit_0_indices) and bit_1_indices == sorted(bit_1_indices)): return False # Verify aggregate signature if not bls_verify_multiple(