blockchain receipts rlp generation

This commit is contained in:
Nikolay Volf 2016-03-11 23:33:01 +01:00
parent 19f23f8445
commit fb51ac0d95

View File

@ -470,8 +470,12 @@ impl<V> BlockChainClient for Client<V> where V: Verifier {
self.state_db.lock().unwrap().state(hash) self.state_db.lock().unwrap().state(hash)
} }
fn block_receipts(&self, _hash: &H256) -> Option<Bytes> { fn block_receipts(&self, hash: &H256) -> Option<Bytes> {
None 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 { fn import_block(&self, bytes: Bytes) -> ImportResult {