Tidy ancestor iterators (#490)

* Tidy ancestor iterators

* Improve comments, remove code fragement
This commit is contained in:
Paul Hauner
2019-08-08 12:28:10 +10:00
committed by GitHub
parent 66c7337e21
commit 3a1f56a42e
11 changed files with 123 additions and 201 deletions

View File

@@ -54,7 +54,7 @@ fn get_version(_req: Request<Body>) -> APIResult {
fn get_genesis_time<T: BeaconChainTypes + 'static>(req: Request<Body>) -> APIResult {
let beacon_chain = req.extensions().get::<Arc<BeaconChain<T>>>().unwrap();
let gen_time = {
let state = beacon_chain.current_state();
let state = &beacon_chain.head().beacon_state;
state.genesis_time
};
let body = Body::from(