fix travis build

This commit is contained in:
Robert Habermeier 2016-06-05 23:50:27 +02:00
parent 3dff5a9f3f
commit 64b74eae43

View File

@ -384,12 +384,14 @@ impl<V> Client<V> where V: Verifier {
return None; return None;
} }
let root = HeaderView::new(&header).state_root();
// TODO [rob]: refactor State::from_existing so we avoid doing redundant lookups. // TODO [rob]: refactor State::from_existing so we avoid doing redundant lookups.
if !db.contains(&root) { if !db.contains(&root) {
return None; 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()))
}) })
} }