PR feedback: reduce `on_startup` parameters

This commit is contained in:
Hsiao-Wei Wang 2018-11-27 00:21:59 +08:00
parent 4067e0f25a
commit b66f168468
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 3 additions and 5 deletions

View File

@ -660,10 +660,8 @@ A valid block with slot `0` (the "genesis block") has the following values. Othe
```python
def on_startup(current_validators: List[ValidatorRecord],
pre_fork_version: int,
post_fork_version: int,
fork_slot_number: int,
initial_validator_entries: List[Any],
genesis_time: uint64,
genesis_time: int,
processed_pow_receipt_root: Hash32) -> BeaconState:
# Induct validators
validators = []
@ -672,8 +670,8 @@ def on_startup(current_validators: List[ValidatorRecord],
validators, _ = get_new_validators(
current_validators=validators,
pre_fork_version=pre_fork_version,
pre_fork_version=post_fork_version,
fork_slot_number=fork_slot_number,
post_fork_version=pre_fork_version,
fork_slot_number=2**64 - 1,
pubkey=pubkey,
proof_of_possession=proof_of_possession,
withdrawal_credentials=withdrawal_credentials,