Skip to content

Improve note spendability short circuited#28

Draft
zancas wants to merge 7 commits into
Oscar-Pepper:improve_note_spendabilityfrom
zingolabs:improve_note_spendability_short_circuited
Draft

Improve note spendability short circuited#28
zancas wants to merge 7 commits into
Oscar-Pepper:improve_note_spendabilityfrom
zingolabs:improve_note_spendability_short_circuited

Conversation

@zancas

@zancas zancas commented Feb 12, 2026

Copy link
Copy Markdown

I am not certain that it's impossible for a ScannedWithoutMapping to be rescanned even though local state (the client) "knows" there are 0 unspent notes below it.

If unnecessary rescans can be avoided this will improve sync performance as a function of a few variables including network dependent (throughput, availability, etc.) ones.

This PR implements a check that short circuits rescan of ScannedWithoutMapping in the case that there are 0 unspent notes below the range that would be rescanned.

By recursing on the check the implementation ensures that all contiguous ScannedWithoutMapping ranges a correctly handled... i.e. simple switched to scanpriority "Scanned".

@zancas zancas changed the title impoImprove note spendability short circuited Improve note spendability short circuited Feb 12, 2026
@zancas
zancas force-pushed the improve_note_spendability_short_circuited branch from 56373c6 to 96bf20c Compare February 12, 2026 00:26
@zancas
zancas force-pushed the improve_note_spendability_short_circuited branch from cc30b59 to 2e98914 Compare February 12, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant