hirosystems / token-metadata-api

Stacks Token Metadata API
GNU General Public License v3.0
9 stars 2 forks source link

keep a table of ingested block headers #272

Open rafaelcr opened 4 weeks ago

rafaelcr commented 4 weeks ago

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.