Auxiliary data storage in client backend (#849)

* Auxiliary data storage in client backend

* Runtime error handling
This commit is contained in:
Arkadiy Paronyan
2018-10-01 01:10:45 +02:00
committed by Gav Wood
parent 2e728005c9
commit 04cf0072ba
5 changed files with 60 additions and 2 deletions
+9 -1
View File
@@ -126,7 +126,15 @@ impl<S, F, Block, H> ClientBackend<Block, H> for Backend<S, F> where
}
fn revert(&self, _n: NumberFor<Block>) -> ClientResult<NumberFor<Block>> {
unimplemented!()
Err(ClientErrorKind::NotAvailableOnLightClient.into())
}
fn insert_aux<'a, 'b: 'a, 'c: 'a, I: IntoIterator<Item=&'a (&'c [u8], &'c [u8])>, D: IntoIterator<Item=&'a &'b [u8]>>(&self, _insert: I, _delete: D) -> ClientResult<()> {
Err(ClientErrorKind::NotAvailableOnLightClient.into())
}
fn get_aux(&self, _key: &[u8]) -> ClientResult<Option<Vec<u8>>> {
Err(ClientErrorKind::NotAvailableOnLightClient.into())
}
}