Companion for #9100 (Paged keys rpc for child storage.) (#3258)

* patch branch

* patch bis

* Add missing client method.

* unpatch

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
cheme
2021-07-07 09:53:33 +02:00
committed by GitHub
parent 528e751753
commit b71ec24815
2 changed files with 170 additions and 152 deletions
+154 -152
View File
File diff suppressed because it is too large Load Diff
+16
View File
@@ -430,6 +430,22 @@ impl sc_client_api::StorageProvider<Block, crate::FullBackend> for Client {
}
}
fn child_storage_keys_iter<'a>(
&self,
id: &BlockId<Block>,
child_info: ChildInfo,
prefix: Option<&'a StorageKey>,
start_key: Option<&StorageKey>,
) -> sp_blockchain::Result<KeyIterator<'a, <crate::FullBackend as sc_client_api::Backend<Block>>::State, Block>> {
with_client! {
self,
client,
{
client.child_storage_keys_iter(id, child_info, prefix, start_key)
}
}
}
fn child_storage_hash(
&self,
id: &BlockId<Block>,