From 64b74eae43628784fc9d6f2ef5d3a39fa57cf25a Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Sun, 5 Jun 2016 23:50:27 +0200 Subject: [PATCH] fix travis build --- ethcore/src/client/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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())) }) }