Skip to content

Commit

Permalink
Merge pull request #762 from ethereum/JustinDrake-patch-10
Browse files Browse the repository at this point in the history
Epoch-based proposer slashing
  • Loading branch information
djrtwo authored Mar 12, 2019
2 parents 8ca303e + 0f12041 commit a4a1763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs/core/0_beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -2305,8 +2305,8 @@ def process_proposer_slashing(state: BeaconState,
Note that this function mutates ``state``.
"""
proposer = state.validator_registry[proposer_slashing.proposer_index]
# Verify that the slot is the same
assert proposer_slashing.header_1.slot == proposer_slashing.header_2.slot
# Verify that the epoch is the same
assert slot_to_epoch(proposer_slashing.header_1.slot) == slot_to_epoch(proposer_slashing.header_2.slot)
# But the headers are different
assert proposer_slashing.header_1 != proposer_slashing.header_2
# Proposer is not yet slashed
Expand Down

0 comments on commit a4a1763

Please sign in to comment.