Skip to content

Comments

Merge persisted updates if greater than given thresholds#137

Draft
RCasatta wants to merge 3 commits intomasterfrom
update-merge
Draft

Merge persisted updates if greater than given thresholds#137
RCasatta wants to merge 3 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

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