[Feature] - Handle Skipped Slots #31

Closed
opened 2022-05-12 14:19:08 +00:00 by abdulrabbani00 · 0 comments
abdulrabbani00 commented 2022-05-12 14:19:08 +00:00 (Migrated from github.com)

Table of contents generated with markdown-toc

Overview

Request

We need to handle skipped slots that can occur.

Potential Solution

  1. We need to make sure the node is synced when running it in head mode: curl http://localhost:5052/eth/v1/node/syncing -H "accept: application/json".
  2. If a slot has a state but no block, mark it as skipped.
  3. If the slot has no state or block, add it to the known_gaps table.
  4. Handle 404's when querying blocks and state.

Alternative Solutions

Additional Context

- [Overview](#overview) - [Request](#request) - [Potential Solution](#potential-solution) - [Alternative Solutions](#alternative-solutions) - [Additional Context](#additional-context) <small><i><a href='http://ecotrust-canada.github.io/markdown-toc/'>Table of contents generated with markdown-toc</a></i></small> # Overview - **Requester**: @abdulrabbani00 - **Epic Link**: https://github.com/vulcanize/ipld-ethcl-indexer/issues/19 ## Request <!--- Explain what you want and why. If this feature is related to a problem please highlight it here.** ---> We need to handle skipped slots that can occur. # Potential Solution <!---Provide any details for a potential solution. ---> 1. We need to make sure the node is `synced` when running it in `head` mode: `curl http://localhost:5052/eth/v1/node/syncing -H "accept: application/json"`. 2. If a slot has a `state` but no `block`, mark it as skipped. 3. If the slot has no `state` or `block`, add it to the known_gaps table. 4. Handle 404's when querying blocks and state. ## Alternative Solutions <!---Provide any alternative solutions. ---> # Additional Context <!---Provide Additional Context. --->
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-beacon-indexer#31
No description provided.