blockchain receipts rlp generation

This commit is contained in:
Nikolay Volf 2016-03-11 23:33:01 +01:00
parent 19f23f8445
commit fb51ac0d95
1 changed files with 6 additions and 2 deletions

View File

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