minor updates
This commit is contained in:
parent
e7c595d1d6
commit
8828dad786
|
@ -1731,7 +1731,10 @@ def process_attestation(state: BeaconState, attestation: Attestation) -> None:
|
||||||
##### Deposits
|
##### Deposits
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def process_deposit(state: BeaconState, deposit: Deposit, deposit_index: Optional[uint64]=None, deposit_root: Optional[Hash]=None) -> None:
|
def process_deposit(state: BeaconState,
|
||||||
|
deposit: Deposit,
|
||||||
|
deposit_index: Optional[uint64]=None,
|
||||||
|
deposit_root: Optional[Hash]=None) -> None:
|
||||||
"""
|
"""
|
||||||
Process an Eth1 deposit, registering a validator or increasing its balance.
|
Process an Eth1 deposit, registering a validator or increasing its balance.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -185,6 +185,6 @@ def test_bad_merkle_proof(spec, state):
|
||||||
# mess up merkle branch
|
# mess up merkle branch
|
||||||
deposit.proof[-1] = spec.ZERO_HASH
|
deposit.proof[-1] = spec.ZERO_HASH
|
||||||
|
|
||||||
sign_deposit_data(spec, deposit.data, privkeys[validator_index], state)
|
sign_deposit_data(spec, deposit.data, privkeys[validator_index], state=state)
|
||||||
|
|
||||||
yield from run_deposit_processing(spec, state, deposit, validator_index, valid=False)
|
yield from run_deposit_processing(spec, state, deposit, validator_index, valid=False)
|
||||||
|
|
|
@ -33,7 +33,7 @@ def test_is_genesis_trigger_true(spec, state):
|
||||||
@with_phases(['phase0'])
|
@with_phases(['phase0'])
|
||||||
@spec_state_test
|
@spec_state_test
|
||||||
def test_genesis(spec, state):
|
def test_genesis(spec, state):
|
||||||
deposit_count = 2
|
deposit_count = spec.GENESIS_ACTIVE_VALIDATOR_COUNT
|
||||||
genesis_deposits, deposit_root = prepare_genesis_deposits(spec, deposit_count)
|
genesis_deposits, deposit_root = prepare_genesis_deposits(spec, deposit_count)
|
||||||
genesis_time = 1234
|
genesis_time = 1234
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue