From 78e670812c2e9818717b07e8d0587dea853db6cb Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Wed, 11 Jan 2017 18:57:38 +0100 Subject: [PATCH] fix test compilation --- ethcore/light/src/on_demand/request.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ethcore/light/src/on_demand/request.rs b/ethcore/light/src/on_demand/request.rs index f483c6fdd..86fcc5d05 100644 --- a/ethcore/light/src/on_demand/request.rs +++ b/ethcore/light/src/on_demand/request.rs @@ -192,7 +192,7 @@ mod tests { use super::*; use util::{MemoryDB, Address, H256, FixedHash}; use util::trie::{Trie, TrieMut, TrieDB, SecTrieDB, TrieDBMut, SecTrieDBMut}; - use util::trie::recorder::{BasicRecorder, Recorder}; + use util::trie::recorder::Recorder; use ethcore::header::Header; use ethcore::encoded; @@ -221,9 +221,9 @@ mod tests { let proof = { let trie = TrieDB::new(&db, &root).unwrap(); let key = ::rlp::encode(&10_000u64); - let mut recorder = BasicRecorder::new(); + let mut recorder = Recorder::new(); - trie.get_recorded(&*key, &mut recorder).unwrap().unwrap(); + trie.get_with(&*key, &mut recorder).unwrap().unwrap(); recorder.drain().into_iter().map(|r| r.data).collect::>() }; @@ -318,9 +318,9 @@ mod tests { let proof = { let trie = SecTrieDB::new(&db, &root).unwrap(); - let mut recorder = BasicRecorder::new(); + let mut recorder = Recorder::new(); - trie.get_recorded(&*addr, &mut recorder).unwrap().unwrap(); + trie.get_with(&*addr, &mut recorder).unwrap().unwrap(); recorder.drain().into_iter().map(|r| r.data).collect::>() };