fix spec/beaconstate compile error in the presence of other PRs' SSZ tightening (#952)

This commit is contained in:
tersec 2020-04-30 09:01:55 +00:00 committed by GitHub
parent 3a56ddc5c4
commit cd939d4606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ proc initialize_hashed_beacon_state_from_eth1*(
flags: UpdateFlags = {}): HashedBeaconState = flags: UpdateFlags = {}): HashedBeaconState =
let genesisState = initialize_beacon_state_from_eth1( let genesisState = initialize_beacon_state_from_eth1(
eth1_block_hash, eth1_timestamp, deposits, flags) eth1_block_hash, eth1_timestamp, deposits, flags)
HashedBeaconState(data: genesisState[], root: hash_tree_root(genesisState)) HashedBeaconState(data: genesisState[], root: hash_tree_root(genesisState[]))
func is_valid_genesis_state*(state: BeaconState): bool = func is_valid_genesis_state*(state: BeaconState): bool =
if state.genesis_time < MIN_GENESIS_TIME: if state.genesis_time < MIN_GENESIS_TIME: