From f92735454e15dbdda0206b95ae40cfc03dba33b0 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Thu, 3 Jan 2019 16:19:54 +0800 Subject: [PATCH] Fix `verify_slashable_vote_data` The first field of `AttestationDataAndCustodyBit` should be an `AttestationData` object, not an `SlashableVoteData` object. --- specs/core/0_beacon-chain.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 7e2bbe83f..a35540d97 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -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(