Return nothing on state requests instead of panicing

This commit is contained in:
arkpar 2016-02-16 01:13:13 +01:00
parent fb0b5b2e5b
commit dbf3691c22

View File

@ -419,11 +419,11 @@ impl BlockChainClient for Client {
} }
fn state_data(&self, _hash: &H256) -> Option<Bytes> { fn state_data(&self, _hash: &H256) -> Option<Bytes> {
unimplemented!(); None
} }
fn block_receipts(&self, _hash: &H256) -> Option<Bytes> { fn block_receipts(&self, _hash: &H256) -> Option<Bytes> {
unimplemented!(); None
} }
fn import_block(&self, bytes: Bytes) -> ImportResult { fn import_block(&self, bytes: Bytes) -> ImportResult {