From fb51ac0d95504d94b46908ccb7bdc1cf7c59670f Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Fri, 11 Mar 2016 23:33:01 +0100 Subject: [PATCH] blockchain receipts rlp generation --- ethcore/src/client/client.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ethcore/src/client/client.rs b/ethcore/src/client/client.rs index 77cf105ed..4642a0103 100644 --- a/ethcore/src/client/client.rs +++ b/ethcore/src/client/client.rs @@ -470,8 +470,12 @@ impl BlockChainClient for Client where V: Verifier { self.state_db.lock().unwrap().state(hash) } - fn block_receipts(&self, _hash: &H256) -> Option { - None + fn block_receipts(&self, hash: &H256) -> Option { + self.chain.block_receipts(hash).and_then(|receipts| { + let mut rlp = RlpStream::new(); + rlp.append(&receipts); + Some(rlp.out()) + }) } fn import_block(&self, bytes: Bytes) -> ImportResult {