diff --git a/ethcore/light/src/on_demand/mod.rs b/ethcore/light/src/on_demand/mod.rs index 4a99c4a39..218a866a3 100644 --- a/ethcore/light/src/on_demand/mod.rs +++ b/ethcore/light/src/on_demand/mod.rs @@ -504,8 +504,7 @@ impl Handler for OnDemand { #[cfg(test)] mod tests { use super::*; - use on_demand::request; - use net::{BasicContext, ReqId, Error as LesError}; + use net::{Announcement, BasicContext, ReqId, Error as LesError}; use request::{Request as LesRequest, Kind as LesRequestKind}; use network::{PeerId, NodeId}; use futures::Future; diff --git a/ethcore/light/src/on_demand/request.rs b/ethcore/light/src/on_demand/request.rs index 7ffde2b02..52383e721 100644 --- a/ethcore/light/src/on_demand/request.rs +++ b/ethcore/light/src/on_demand/request.rs @@ -289,6 +289,8 @@ mod tests { #[test] fn check_state_proof() { + use rlp::{RlpStream, Stream}; + let mut root = H256::default(); let mut db = MemoryDB::new(); let mut header = Header::new();