default value of `deposit_index`

This commit is contained in:
Hsiao-Wei Wang 2019-06-21 16:10:19 -06:00
parent 7a16db144c
commit b36ffd5c41
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 1 additions and 1 deletions

View File

@ -1730,7 +1730,7 @@ def process_attestation(state: BeaconState, attestation: Attestation) -> None:
##### Deposits
```python
def process_deposit(state: BeaconState, deposit: Deposit, deposit_index: Optional[uint64]) -> None:
def process_deposit(state: BeaconState, deposit: Deposit, deposit_index: Optional[uint64]=None) -> None:
"""
Process an Eth1 deposit, registering a validator or increasing its balance.
"""