hirosystems / hirosystems/token-metadata-api

keep a table of ingested block headers

Open
#272 0 comments 0 reactions 1 assignee Claimed by @rafaelcr View on GitHub
bug good first issue
Dominant language
TypeScript
Stars
10
Forks
7
Avg merge
35m
Merged PRs (30d)
2

Description

To optimize how we determine if we've already ingested a block, we should keep a `blocks` table with only header data (block hash and height). This way, if we receive a new chainhook payload we can determine with full certainty if we have already ingested that block before instead of comparing only block heights which may be deceptive and vulnerable to reorgs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.