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

miscellaneous indexer improvements: 1) Seperate reindexing logic from the index. #414

Open D-Stacks opened 4 months ago

D-Stacks commented 4 months ago

1) Currently reindexing logic is done within the index while holding it's lock 2) This should be possible to do outside of the write lock.

ideally we would want a per consensus notification reindexer to perform the reindex inside the index processor and then simply supply the result to the index for committance to its Db.

A per consensus notification approach should be preferred, as