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

Pass accepting blue score along with UTXO changes batch notification #386

Open michaelsutton opened 5 months ago

michaelsutton commented 5 months ago

For each UTXO notification batch, pass virtual blue score at the time (should be named accepting_blue_score_upper_bound). This should propagate through notifications and RPC layers. Wallets should use this upper bound to compute a lower bound to the number of confirmations (with sink_blue_score - accepting_blue_score_upper_bound, since it is <= sink_blue_score - actual_accepting_blue_score_for_specific_entry)

Note that the expression sink_blue_score - accepting_blue_score_upper_bound might be negative which means zero confirmations