diff --git a/client/rpc/src/state/mod.rs b/client/rpc/src/state/mod.rs index 72c5c4ddb085e..80eccc2c97deb 100644 --- a/client/rpc/src/state/mod.rs +++ b/client/rpc/src/state/mod.rs @@ -94,13 +94,6 @@ where key: StorageKey, ) -> FutureResult>; - /// Returns storage entries for multiple keys at a specific block's state. - fn storage_entries( - &self, - block: Option, - keys: Vec, - ) -> FutureResult>>; - /// Returns the hash of a storage entry at a block's state. fn storage_hash( &self, diff --git a/client/rpc/src/state/state_full.rs b/client/rpc/src/state/state_full.rs index acb5195f7cdc0..2b996633be011 100644 --- a/client/rpc/src/state/state_full.rs +++ b/client/rpc/src/state/state_full.rs @@ -360,24 +360,6 @@ where async move { r }.boxed() } - fn storage_entries( - &self, - block: Option, - keys: Vec, - ) -> FutureResult>> { - let block = match self.block_or_best(block) { - Ok(b) => b, - Err(e) => return err(client_err(e)).boxed(), - }; - let client = self.client.clone(); - try_join_all(keys.into_iter().map(move |key| { - let res = client.storage(&BlockId::Hash(block), &key).map_err(client_err); - - async move { res } - })) - .boxed() - } - fn storage_size( &self, block: Option, @@ -758,7 +740,7 @@ where .clone() .child_storage(&BlockId::Hash(block), &child_info, &key) .map_err(client_err); - + async move { res } diff --git a/client/rpc/src/state/state_light.rs b/client/rpc/src/state/state_light.rs index fde461f5d2d20..45f97604f6f4c 100644 --- a/client/rpc/src/state/state_light.rs +++ b/client/rpc/src/state/state_light.rs @@ -233,17 +233,6 @@ where .boxed() } - fn storage_entries( - &self, - block: Option, - keys: Vec, - ) -> FutureResult>> { - let keys = keys.iter().map(|k| k.0.clone()).collect::>(); - storage(&*self.remote_blockchain, self.fetcher.clone(), self.block_or_best(block), keys) - .map_ok(|v| v.into_iter().map(|x| x.1).collect::>()) - .boxed() - } - fn storage_hash( &self, block: Option,