Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into ch-ch-trie
  • Loading branch information
cheme committed Aug 29, 2019
commit 24d3b85c3b9cdf3eedea28ba45e54fc0eb959957
15 changes: 8 additions & 7 deletions core/rpc/src/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ impl<B, E, Block: BlockT, RA> State<B, E, Block, RA> where
for key in keys {
let mut last_block = None;
let mut last_value = last_values.get(key).cloned().unwrap_or_default();
for (block, _) in self.client.key_changes(begin, end, None, key)?.into_iter().rev() {
for (block, _) in self.client.key_changes(begin, end, None, key)
.map_err(client_err)?.into_iter().rev() {
if last_block == Some(block) {
continue;
}
Expand Down Expand Up @@ -290,8 +291,8 @@ impl<B, E, Block, RA> StateApi<Block::Hash> for State<B, E, Block, RA> where
let block = self.unwrap_or_best(block)?;
trace!(target: "rpc", "Querying child storage at {:?} for key {}", block, HexDisplay::from(&key.0));
Ok(self.client
.child_storage(&BlockId::Hash(block), &child_storage_key, &key)
.map_err(client_err)?
.child_storage(&BlockId::Hash(block), &child_storage_key, &key)
.map_err(client_err)?
)
}

Expand All @@ -304,8 +305,8 @@ impl<B, E, Block, RA> StateApi<Block::Hash> for State<B, E, Block, RA> where
let block = self.unwrap_or_best(block)?;
trace!(target: "rpc", "Querying child storage keys at {:?}", block);
Ok(self.client
.child_storage_keys(&BlockId::Hash(block), &child_storage_key, &key_prefix)
.map_err(client_err)?
.child_storage_keys(&BlockId::Hash(block), &child_storage_key, &key_prefix)
.map_err(client_err)?
)
}

Expand All @@ -322,8 +323,8 @@ impl<B, E, Block, RA> StateApi<Block::Hash> for State<B, E, Block, RA> where
HexDisplay::from(&key.0),
);
Ok(self.client
.child_storage_hash(&BlockId::Hash(block), &child_storage_key, &key)
.map_err(client_err)?
.child_storage_hash(&BlockId::Hash(block), &child_storage_key, &key)
.map_err(client_err)?
)
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.