kaspanet / rusty-kaspa

Kaspa full-node and related libraries in the Rust programming language. This is a stable version at the initial rollout phases.
ISC License
366 stars 115 forks source link

Txindex #401

Open D-Stacks opened 4 months ago

D-Stacks commented 4 months ago

Merge Request for TxIndex

Summary

This PR introduces the TxIndex, a new index that enables querying of transaction data.

Changes:

(None exhaustive)

Consensus Codebase

Notify Codebase

Index Codebase

Kaspad Codebase

RPC Codebase

Integration Tests Codebase

Known Issues

1. There is a race condition or similar issue when pruning is interrupted, which causes the TxIndex history root to lose sync with consensus. - Solved

  1. There is a lack of testing for pruning and resyncing due to limitations in the testing framework. A separate PR may be needed to expand Simpa to support testing with indexes and enable controlled testing of reorg scenarios.