mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-03 01:14:58 -05:00
Fix verify_slashable_vote_data
The first field of `AttestationDataAndCustodyBit` should be an `AttestationData` object, not an `SlashableVoteData` object.
This commit is contained in:
@@ -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]),
|
||||
],
|
||||
messages=[
|
||||
hash_tree_root(AttestationDataAndCustodyBit(vote_data, False)),
|
||||
hash_tree_root(AttestationDataAndCustodyBit(vote_data, True)),
|
||||
hash_tree_root(AttestationDataAndCustodyBit(vote_data.data, False)),
|
||||
hash_tree_root(AttestationDataAndCustodyBit(vote_data.data, True)),
|
||||
],
|
||||
signature=vote_data.aggregate_signature,
|
||||
domain=get_domain(
|
||||
|
||||
Reference in New Issue
Block a user