babylonchain / staking-indexer

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

Emit confirmed info event per confirmed block #143

Closed gitferry closed 2 months ago

gitferry commented 3 months ago

This PR introduce the emitting of confirmed info event before finishing handling a confirmed block. This sends the confirmed height along with confirmed tvl in the event. Given that the indexer ensures all the confirmed blocks are handled in the order of block height, no tvl data will be missed