fix default value in compute_domain

This commit is contained in:
Danny Ryan 2020-01-22 07:24:15 -07:00
parent 2e3fcc16f1
commit cf18b040b4
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 3 additions and 1 deletions

View File

@ -788,10 +788,12 @@ def compute_activation_exit_epoch(epoch: Epoch) -> Epoch:
#### `compute_domain` #### `compute_domain`
```python ```python
def compute_domain(domain_type: DomainType, fork_version: Version=GENESIS_FORK_VERSION) -> Domain: def compute_domain(domain_type: DomainType, fork_version: Version=None) -> Domain:
""" """
Return the domain for the ``domain_type`` and ``fork_version``. Return the domain for the ``domain_type`` and ``fork_version``.
""" """
if fork_version is None:
fork_version = GENESIS_FORK_VERSION
return Domain(domain_type + fork_version) return Domain(domain_type + fork_version)
``` ```