Retrieve all preimages at provided height #35

Closed
opened 2020-11-13 15:41:57 +00:00 by i-norden · 2 comments
Member

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 #32, e.g. RPC cal tells the node to write out all the addresshash=>addresses directly to Postgres

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](https://github.com/vulcanize/go-ethereum/blob/v1.9.23-statediff/statediff/api.go#L104) and [service](https://github.com/vulcanize/go-ethereum/blob/v1.9.23-statediff/statediff/service.go#L471) - [ ] Extend this to the direct indexing approach introduced in #32, e.g. RPC cal tells the node to write out all the addresshash=>addresses directly to Postgres
Author
Member
Related https://github.com/vulcanize/go-ethereum/pull/42
Author
Member

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

Closing, we can reopen if we want to add this feature in the future
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/go-ethereum#35
No description provided.