babylonlabs-io / staking-indexer

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

Indexer identifying staking transaction expiration #11

Open gitferry opened 4 months ago

gitferry commented 4 months ago

Currently, the indexer does not handle active staking transaction expiration, which works only if the staking transactions expire in a very long time. However, this limits out options for unbonding time which might lead to additional concerns. One solution would be to connect the expiry checker with the indexer, and before processing a new block, first check whether any active transactions have expired on that block. There might be other solutions.