Update 1_shard-data-chains.md

This commit is contained in:
Justin 2019-09-03 22:49:33 +01:00 committed by GitHub
parent 2b60c9cf90
commit c01d036ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,11 +240,11 @@ def get_genesis_shard_state(shard: Shard) -> ShardState:
### `get_genesis_shard_block`
```python
def get_genesis_shard_block(beacon_state: BeaconState, shard: Shard) -> ShardBlock:
def get_genesis_shard_block(shard: Shard) -> ShardBlock:
return ShardBlock(
shard=shard,
slot=ShardSlot(SHARD_GENESIS_EPOCH * SHARD_SLOTS_PER_EPOCH),
state_root=hash_tree_root(get_genesis_shard_state(beacon_state, shard)),
state_root=hash_tree_root(get_genesis_shard_state(shard)),
)
```