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

cache utxoset size, and add to logs. #412

Closed D-Stacks closed 4 months ago

D-Stacks commented 4 months ago

1) adds utxoset size to the db 2) propagates via p2p 3) expand logs pertaining to utxo syncing 4) adds corresponding regex capture to @aspect 's wallet.

D-Stacks commented 4 months ago

As I noticed with sanity checks, utxo diffs may hold the same outpoint in added and removed at different daa scores, as such this either 1) requires extra processing / looping, which is probably not worth the strain, or 2) expansion of the utxo algebra / diff to extract unique utxo growth in-place, which is a deeper incursion on sensitive consensus processing and requires more discussion. As such putting this on ice and closing it... potentially will re-open it with a PoC for 2) that can be discussed.