babylonchain / staking-indexer

A tool that extracts BTC staking relevant data from the Bitcoin blockchain
Other
3 stars 4 forks source link

chore: Add BTC unconfirmed block cache #72

Closed gitferry closed 5 months ago

gitferry commented 5 months ago

This PR added the BTC block cache to save unconfirmed blocks in memory in order to avoid unnecessary downloading of blocks. The downside is that we need to handle forks, which needs extra carefulness.

The BTC cache is adapted from vigilante

gitferry commented 5 months ago

Need to fix ci after #76 is merged