Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve all preimages at provided height #35

Closed
2 tasks
i-norden opened this issue Nov 13, 2020 · 2 comments
Closed
2 tasks

Retrieve all preimages at provided height #35

i-norden opened this issue Nov 13, 2020 · 2 comments
Assignees

Comments

@i-norden
Copy link
Collaborator

i-norden commented Nov 13, 2020

Extends #33, #33 emits preimages (addresses), as part of the statediff object, for accounts as they are created but we need a means of retrieving any preimages we may have missed up to the point we apply the changes from #33. We can do this by providing an endpoint to stream out every preimage (address) in the state trie at a provided block height.

  • Make StreamPreimages subscription endpoint methods, which should closely mirror the StreamCodeAndCodeHash methods for the api and service

  • Extend this to the direct indexing approach introduced in Write IPLD secondary indexes directly to Postgres #32, e.g. RPC cal tells the node to write out all the addresshash=>addresses directly to Postgres

@i-norden
Copy link
Collaborator Author

i-norden commented Jun 4, 2021

Related #42

@i-norden
Copy link
Collaborator Author

Closing, we can reopen if we want to add this feature in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants