mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-15 05:04:32 +00:00
Fix type hinting
This commit is contained in:
parent
b8d1003c2c
commit
00804da13e
@ -1633,7 +1633,7 @@ For each `proposer_slashing` in `block.body.proposer_slashings`, run the followi
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
def process_proposer_slashing(state: BeaconState,
|
def process_proposer_slashing(state: BeaconState,
|
||||||
proposer_slashing: ProposerSlashing):
|
proposer_slashing: ProposerSlashing) -> None:
|
||||||
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.proposal_1.slot == proposer_slashing.proposal_2.slot
|
assert proposer_slashing.proposal_1.slot == proposer_slashing.proposal_2.slot
|
||||||
@ -1662,7 +1662,7 @@ For each `attester_slashing` in `block.body.attester_slashings`, run the followi
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
def process_attester_slashing(state: BeaconState,
|
def process_attester_slashing(state: BeaconState,
|
||||||
attester_slashing: AttesterSlashing):
|
attester_slashing: AttesterSlashing) -> None:
|
||||||
attestation1 = attester_slashing.slashable_attestation_1
|
attestation1 = attester_slashing.slashable_attestation_1
|
||||||
attestation2 = attester_slashing.slashable_attestation_2
|
attestation2 = attester_slashing.slashable_attestation_2
|
||||||
# Check that the attestations are conflicting
|
# Check that the attestations are conflicting
|
||||||
|
Loading…
x
Reference in New Issue
Block a user