Merge pull request #390 from ethereum/hwwhww-patch-1

Fix `verify_slashable_vote_data`
This commit is contained in:
Danny Ryan 2019-01-03 21:41:50 -07:00 committed by GitHub
commit cf6b296ab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1039,8 +1039,8 @@ def verify_slashable_vote_data(state: BeaconState, vote_data: SlashableVoteData)
aggregate_pubkey([state.validators[i].pubkey for i in vote_data.custody_bit_1_indices]), aggregate_pubkey([state.validators[i].pubkey for i in vote_data.custody_bit_1_indices]),
], ],
messages=[ messages=[
hash_tree_root(AttestationDataAndCustodyBit(vote_data, False)), hash_tree_root(AttestationDataAndCustodyBit(vote_data.data, False)),
hash_tree_root(AttestationDataAndCustodyBit(vote_data, True)), hash_tree_root(AttestationDataAndCustodyBit(vote_data.data, True)),
], ],
signature=vote_data.aggregate_signature, signature=vote_data.aggregate_signature,
domain=get_domain( domain=get_domain(