hirosystems / chainhook

Extract transactions from Stacks and Bitcoin and build event driven re-org resistant indexers and databases.
GNU General Public License v3.0
144 stars 57 forks source link

improve startup process to avoid missing blocks #454

Closed MicaiahReid closed 7 months ago

MicaiahReid commented 11 months ago

Currently, when chainhook starts up, all blocks between the ingested archive's last block and chain tip are missing. We need to fetch these blocks and add them to the local chain state so there aren't gaps.

MicaiahReid commented 7 months ago

So a stacks node will stop progressing until Chainhook is back up, so if Chainhook goes down there shouldn't be any gaps in the blocks.

From my investigations, I think these gaps are happening during a reorg where:

All that to say, #487 is a more appropriate issue to resolve the problems we're seeing. Closing this ticket in favor of that one.