diff --git a/ethcore/src/client/client.rs b/ethcore/src/client/client.rs index 008ca7860..4e834e2f8 100644 --- a/ethcore/src/client/client.rs +++ b/ethcore/src/client/client.rs @@ -384,12 +384,14 @@ impl Client where V: Verifier { return None; } + let root = HeaderView::new(&header).state_root(); + // TODO [rob]: refactor State::from_existing so we avoid doing redundant lookups. if !db.contains(&root) { return None; } - Some(State::from_existing(db, HeaderView::new(&header).state_root(), self.engine.account_start_nonce())) + Some(State::from_existing(db, root, self.engine.account_start_nonce())) }) }