Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

RPC: query historical storage entries - #537

Merged
gavofyork merged 4 commits into
masterfrom
td-storagequery
Aug 14, 2018
Merged

RPC: query historical storage entries#537
gavofyork merged 4 commits into
masterfrom
td-storagequery

Conversation

@tomusdrw

@tomusdrwtomusdrw commented Aug 10, 2018

Copy link
Copy Markdown
Contributor

Instead of re-executing blocks we are just figuring out the diffs for given set of keys.

We first try to find a path starting at the end block up to the start block, by using hashes. Then we query the storage for all those blocks and return the results as diffs (StorageChangeSets).

I suppose it will not work well if the state is pruned, but should work fine on archive nodes.

Related: #135

@tomusdrwtomusdrw added A0-please_review Pull request needs code review. M6-rpcapi labels Aug 10, 2018
@gavofyork

Copy link
Copy Markdown
Member

this doesn't touch runtime and only runtime failed in CI (spuriously); looks safe.

@gavofyork
gavofyork merged commit 3c6ee6d into masterAug 14, 2018
@gavofyork
gavofyork deleted the td-storagequery branch August 14, 2018 10:52
dvdplm added a commit that referenced this pull request Aug 14, 2018
* master:
Update some outdated slashing tests in runtime (#565)
Update libp2p (#559)
Reject too large transactions (#558)
cli: add min-peers and max-peers (#557)
RPC: query historical storage entries (#537)
lamafab pushed a commit to lamafab/substrate that referenced this pull request Jun 16, 2020
* Update to latest sub
* Revert branch update
* Update.
* Update tests.
* Ignore warnings in tests.
lamafab pushed a commit to lamafab/substrate that referenced this pull request Jun 16, 2020
* Bump Substrate and versions (paritytech#531)
* Bump versions
* Build fix.
* Enable governance (paritytech#536)
* Enable governance
* Tweak a few parameters
* Bump substrate, versions. (paritytech#538)
* Bump substrate, versions.
* Build fix
* Bump rpc deps (paritytech#537)
* Update to latest sub
* Revert branch update
* Update.
* Update tests.
* Ignore warnings in tests.
* Revert substrate (paritytech#540)
* Version bump
* Bump Substrate, versions. (paritytech#542)
* Bump Substrate, versions.
Also revert the enabling of democracy
* Build fix
* Bump Substrate (paritytech#544)
* Bump Substrate
* Fix
* A few tidyups
* Bump Substrate (paritytech#547)
* Bump Substrate
* Another bump
* Fixed build for new block_import API
* Enable grandpa migration. (paritytech#549)
* Enable grandpa migration.
* Bump runtime version
liuchengxu added a commit to chainx-org/substrate that referenced this pull request Aug 23, 2021
* Rename OrderDirection to Side
* Rename OrderType to Type
* Rename OrderStatus
* Also log error for std
* Clarify the range for quotations
Nit
* Remove useless import
* Revert OrderType
* Revert OrderStatus
helin6 pushed a commit to boolnetwork/substrate that referenced this pull request Jul 25, 2023
* Update polkadot.rs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Update artifacts
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Change CLI default to bytes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Storage query example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Update storage_query example with different alternatives
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* rpc: Make calls with StorageKey instead of the prefix
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Examples: Add double map storage iteration
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* examples: Use tracing_subscriber for logs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_reviewPull request needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@tomusdrw@gavofyork