From f7a0f1056803fe6ef819040a236d04872f5aa332 Mon Sep 17 00:00:00 2001 From: debris Date: Wed, 27 Jan 2016 16:58:53 +0100 Subject: [PATCH] missing methods --- src/sync/tests.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sync/tests.rs b/src/sync/tests.rs index 50d6efab2..646933122 100644 --- a/src/sync/tests.rs +++ b/src/sync/tests.rs @@ -51,6 +51,10 @@ impl TestBlockChainClient { } impl BlockChainClient for TestBlockChainClient { + fn block_total_difficulty(&self, _h: &H256) -> Option { + unimplemented!(); + } + fn block_header(&self, h: &H256) -> Option { self.blocks.read().unwrap().get(h).map(|r| Rlp::new(r).at(0).as_raw().to_vec()) @@ -76,6 +80,10 @@ impl BlockChainClient for TestBlockChainClient { } } + fn block_total_difficulty_at(&self, _number: BlockNumber) -> Option { + unimplemented!(); + } + fn block_header_at(&self, n: BlockNumber) -> Option { self.numbers.read().unwrap().get(&(n as usize)).and_then(|h| self.block_header(h)) }