fix associtivity in conditional

This commit is contained in:
Danny Ryan 2019-06-30 20:13:27 -05:00
parent 1698263621
commit b08d1d8d73
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 1 deletions

View File

@ -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(