Fill in the entire missing block/state data at the height where an ETH-JSON-RPC cache miss occurs #28

Closed
opened 2021-02-22 17:45:44 +00:00 by i-norden · 1 comment
Member

When we have a cache miss for one of the ETH-JSON-RPC endpoints and forward the call to a geth node to service the request (a la #19), we should spin up a separate background process to populate that data in the Postgres cache. This will require calling out to eth_StateDiffAt and indexing the entire statediff object for the block height/hash where that data is queried, since we need to populate the entire linked data structure in Postgres and not just the result for that specific RPC query.

Simply call out to https://github.com/vulcanize/gap-filler or perform internally?

When we have a cache miss for one of the ETH-JSON-RPC endpoints and forward the call to a geth node to service the request (a la #19), we should spin up a separate background process to populate that data in the Postgres cache. This will require calling out to `eth_StateDiffAt` and indexing the entire statediff object for the block height/hash where that data is queried, since we need to populate the entire linked data structure in Postgres and not just the result for that specific RPC query. Simply call out to https://github.com/vulcanize/gap-filler or perform internally?
Author
Member

Satisfied in #30

Satisfied in #30
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/ipld-eth-server#28
No description provided.