Conversation
Azzurriii
commented
Feb 10, 2026
- Added UTXO event structure and related methods for tracking created and spent UTXOs.
- Enhanced BitcoinIndexer to extract UTXO events from transactions and include them in block metadata.
- Updated MempoolWorker to process and emit UTXO events for monitored addresses.
- Modified emitter to support UTXO event emission to NATS.
- Refactored Block type to include metadata for better extensibility.
- Added UTXO event structure and related methods for tracking created and spent UTXOs. - Enhanced BitcoinIndexer to extract UTXO events from transactions and include them in block metadata. - Updated MempoolWorker to process and emit UTXO events for monitored addresses. - Modified emitter to support UTXO event emission to NATS. - Refactored Block type to include metadata for better extensibility.
|
revert c24bb6e , not necessary Additional feedback: Mempool should not emit UTXOs. UTXOs are used for balance calculation and spending decisions. Mempool txs can be dropped or replaced (RBF), making mempool |
Adding UTXO subjects to the existing transfer stream causes a NATS subject overlap error, and deleting the stream to recreate it would lose unconsumed messages. Use a separate "utxo" stream instead.
|
❯ go run cmd/indexer/main.go index --chains=bitcoin_testnet --debug --manual NATS JetStream is rejecting a stream creation because the subjects it wants to use are already claimed by another existing stream. Fix create a separate stream for utxo without deleting and recreating transfer stream that can cause lost of unconsumed messages |