diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 0b856636b..c82f1e34f 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1731,7 +1731,10 @@ def process_attestation(state: BeaconState, attestation: Attestation) -> None: ##### Deposits ```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. """ diff --git a/test_libs/pyspec/eth2spec/test/phase_0/block_processing/test_process_deposit.py b/test_libs/pyspec/eth2spec/test/phase_0/block_processing/test_process_deposit.py index 1b8c44651..6acf86cc7 100644 --- a/test_libs/pyspec/eth2spec/test/phase_0/block_processing/test_process_deposit.py +++ b/test_libs/pyspec/eth2spec/test/phase_0/block_processing/test_process_deposit.py @@ -185,6 +185,6 @@ def test_bad_merkle_proof(spec, state): # mess up merkle branch 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) diff --git a/test_libs/pyspec/eth2spec/test/sanity/test_genesis.py b/test_libs/pyspec/eth2spec/test/sanity/test_genesis.py index 0a9db7bc0..d6b3bf940 100644 --- a/test_libs/pyspec/eth2spec/test/sanity/test_genesis.py +++ b/test_libs/pyspec/eth2spec/test/sanity/test_genesis.py @@ -33,7 +33,7 @@ def test_is_genesis_trigger_true(spec, state): @with_phases(['phase0']) @spec_state_test 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_time = 1234