From 5f8edd6b55d13a7eb91a8ea7950896bab7a165fa Mon Sep 17 00:00:00 2001 From: Carl Beekhuizen Date: Thu, 20 Jun 2019 20:50:17 +0200 Subject: [PATCH] Genesis block store uses genesis time Co-Authored-By: Hsiao-Wei Wang --- specs/core/0_fork-choice.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/specs/core/0_fork-choice.md b/specs/core/0_fork-choice.md index 6b7e4bdbe..5a4a52db4 100644 --- a/specs/core/0_fork-choice.md +++ b/specs/core/0_fork-choice.md @@ -82,7 +82,12 @@ class Store(object): def get_genesis_store(genesis_state: BeaconState) -> Store: genesis_block = BeaconBlock(state_root=hash_tree_root(genesis_state)) root = signing_root(genesis_block) - return Store(blocks={root: genesis_block}, states={root: genesis_state}, justified_root=root, finalized_root=root) + return Store( + blocks={root: genesis_block}, + states={root: genesis_state}, + time=genesis_state.genesis_time, + justified_root=root, finalized_root=root, + ) ``` #### `get_ancestor`