Update 0_beacon-chain.md
This commit is contained in:
parent
0bcc350b7b
commit
f253feeacf
|
@ -130,12 +130,12 @@
|
||||||
- [RANDAO](#randao)
|
- [RANDAO](#randao)
|
||||||
- [Eth1 data](#eth1-data)
|
- [Eth1 data](#eth1-data)
|
||||||
- [Transactions](#transactions)
|
- [Transactions](#transactions)
|
||||||
- [Proposer slashings](#proposer-slashings-1)
|
- [Proposer slashings](#proposer-slashings)
|
||||||
- [Attester slashings](#attester-slashings-1)
|
- [Attester slashings](#attester-slashings)
|
||||||
- [Attestations](#attestations-1)
|
- [Attestations](#attestations)
|
||||||
- [Deposits](#deposits-1)
|
- [Deposits](#deposits)
|
||||||
- [Voluntary exits](#voluntary-exits-1)
|
- [Voluntary exits](#voluntary-exits)
|
||||||
- [Transfers](#transfers-1)
|
- [Transfers](#transfers)
|
||||||
- [State root verification](#state-root-verification)
|
- [State root verification](#state-root-verification)
|
||||||
- [References](#references)
|
- [References](#references)
|
||||||
- [Normative](#normative)
|
- [Normative](#normative)
|
||||||
|
@ -2298,8 +2298,8 @@ def process_proposer_slashing(state: BeaconState,
|
||||||
proposer = state.validator_registry[proposer_slashing.proposer_index]
|
proposer = state.validator_registry[proposer_slashing.proposer_index]
|
||||||
# Verify that the slot is the same
|
# Verify that the slot is the same
|
||||||
assert proposer_slashing.header_1.slot == proposer_slashing.header_2.slot
|
assert proposer_slashing.header_1.slot == proposer_slashing.header_2.slot
|
||||||
# But the roots are different!
|
# But the headers are different
|
||||||
assert hash_tree_root(proposer_slashing.header_1) != hash_tree_root(proposer_slashing.header_2)
|
assert proposer_slashing.header_1 != proposer_slashing.header_2
|
||||||
# Proposer is not yet slashed
|
# Proposer is not yet slashed
|
||||||
assert proposer.slashed is False
|
assert proposer.slashed is False
|
||||||
# Signatures are valid
|
# Signatures are valid
|
||||||
|
|
Loading…
Reference in New Issue