Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: prevent from clearing wallet data after restart #1366

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mmrrnn
Copy link
Collaborator

@mmrrnn mmrrnn commented Jan 9, 2025

Description
We've been clearing the wallet database on startup which forced scanning UTXOs from the tip 0 on every run. Scanning takes really long time each run:

DEBUG Scanning round completed up to height 84661 in 440.07s (2116869 outputs scanned, 1478 recovered with value 1479069.697509 T)

Clearing was done when we had issues with view keys. Since it's gone, we can keep wallet dir and support caching.

How Has This Been Tested?

I tested manually by running the app several times and watching wallet logs(base_layer.log) to check whether wallet uses previously scanned blocks.

Scanning round completed up to height 85291 in 301.62ms (70 outputs scanned, 0 recovered with value 0 µT)

I also played with displaying seed words and importing new wallets to ensure everything is doesn't break anything related to the view keys

@mmrrnn
Copy link
Collaborator Author

mmrrnn commented Jan 9, 2025

Please somebody test on win11

@mmrrnn mmrrnn marked this pull request as ready for review January 9, 2025 15:09
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