Revert "Tidy ancestor iterators"

This reverts commit 5079c25bb2.

Accidental push to master.. my bad!
This commit is contained in:
Paul Hauner
2019-08-05 16:27:55 +10:00
parent 5079c25bb2
commit e21d3fed05
11 changed files with 199 additions and 125 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.head().beacon_state;
let state = beacon_chain.current_state();
state.genesis_time
};
let body = Body::from(