From f253feeacf6639f62e1260eee8c2dab80628a4bc Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 8 Mar 2019 18:34:51 +0100 Subject: [PATCH] Update 0_beacon-chain.md --- specs/core/0_beacon-chain.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index a339d5058..f33a827b4 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -130,12 +130,12 @@ - [RANDAO](#randao) - [Eth1 data](#eth1-data) - [Transactions](#transactions) - - [Proposer slashings](#proposer-slashings-1) - - [Attester slashings](#attester-slashings-1) - - [Attestations](#attestations-1) - - [Deposits](#deposits-1) - - [Voluntary exits](#voluntary-exits-1) - - [Transfers](#transfers-1) + - [Proposer slashings](#proposer-slashings) + - [Attester slashings](#attester-slashings) + - [Attestations](#attestations) + - [Deposits](#deposits) + - [Voluntary exits](#voluntary-exits) + - [Transfers](#transfers) - [State root verification](#state-root-verification) - [References](#references) - [Normative](#normative) @@ -2298,8 +2298,8 @@ def process_proposer_slashing(state: BeaconState, 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 - # But the roots are different! - assert hash_tree_root(proposer_slashing.header_1) != hash_tree_root(proposer_slashing.header_2) + # But the headers are different + assert proposer_slashing.header_1 != proposer_slashing.header_2 # Proposer is not yet slashed assert proposer.slashed is False # Signatures are valid