Skip to content

Merge persisted updates if greater than given thresholds#137

Merged
RCasatta merged 13 commits intomasterfrom
update-merge
Mar 2, 2026
Merged

Merge persisted updates if greater than given thresholds#137
RCasatta merged 13 commits intomasterfrom
update-merge

Conversation

@RCasatta
Copy link
Contributor

Some users lament low startup time for big wallets, they say most of the time is passed loading multiple stored updates.
This change allow to specify a merge-threshold which triggers the merging of the stored updates into 1


// Expected final state: Balance 899,974, Transactions: 2, UTXOs: 1
assert_eq!(
btc_balance, 899_974,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets not hardcode this balance value but get it from the wollet itself before we merge

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is coming from hardcoded test vectors, so it's fine to use an hardcoded value.

I am adding also integration testing...

@RCasatta RCasatta merged commit 45fc1c1 into master Mar 2, 2026
19 checks passed
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.

2 participants