fix associtivity in conditional
This commit is contained in:
parent
1698263621
commit
b08d1d8d73
|
@ -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:
|
if not len(set(bit_0_indices).intersection(bit_1_indices)) == 0:
|
||||||
return False
|
return False
|
||||||
# Verify indices are sorted
|
# 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
|
return False
|
||||||
# Verify aggregate signature
|
# Verify aggregate signature
|
||||||
if not bls_verify_multiple(
|
if not bls_verify_multiple(
|
||||||
|
|
Loading…
Reference in New Issue