Fix build.

This commit is contained in:
Gav Wood
2016-12-11 02:02:40 +01:00
parent fa30dfd4b9
commit 0302d582d2
13 changed files with 115 additions and 107 deletions

View File

@@ -473,6 +473,10 @@ impl BlockChainClient for TestBlockChainClient {
self.block_hash(id).and_then(|hash| self.blocks.read().get(&hash).map(|r| Rlp::new(r).at(0).as_raw().to_vec()))
}
fn block_number(&self, _id: BlockId) -> Option<BlockNumber> {
unimplemented!()
}
fn block_body(&self, id: BlockId) -> Option<Bytes> {
self.block_hash(id).and_then(|hash| self.blocks.read().get(&hash).map(|r| {
let mut stream = RlpStream::new_list(2);