Fix `verify_slashable_vote_data`: use `get_domain` (#306)

This commit is contained in:
Hsiao-Wei Wang 2018-12-13 17:55:37 +08:00 committed by Justin
parent 6fa12f6603
commit c1a3b29145
1 changed files with 5 additions and 1 deletions

View File

@ -1023,7 +1023,11 @@ def verify_slashable_vote_data(state: BeaconState, vote_data: SlashableVoteData)
pubkeys=pubs,
messages=messages,
signature=vote_data.aggregate_signature,
domain=DOMAIN_ATTESTATION,
domain=get_domain(
state.fork_data,
state.slot,
DOMAIN_ATTESTATION,
),
)
```