Fixed custody bit participants typo

This commit is contained in:
vbuterin 2019-03-03 05:56:57 -06:00 committed by GitHub
parent 73f9ad0512
commit 68bc91bb3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1807,7 +1807,7 @@ def process_attestation(state: BeaconState, attestation: Attestation) -> None:
# Verify aggregate signature # Verify aggregate signature
participants = get_attestation_participants(state, attestation.data, attestation.aggregation_bitfield) participants = get_attestation_participants(state, attestation.data, attestation.aggregation_bitfield)
custody_bit_1_participants = get_attestation_participants(state, attestation.data, attestation.custody_bitfield) custody_bit_1_participants = get_attestation_participants(state, attestation.data, attestation.custody_bitfield)
custody_bit_0_participants = [i in participants for i not in custody_bit_1_participants] custody_bit_0_participants = [i for i in participants if i not in custody_bit_1_participants]
assert bls_verify_multiple( assert bls_verify_multiple(
pubkeys=[ pubkeys=[