-
Notifications
You must be signed in to change notification settings - Fork 774
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
Feature: sync in the background with just view key when locked #4050
base: master
Are you sure you want to change the base?
Conversation
I have not tested anything yet. If i remember correctly this requires a total of 3 PR's? : |
Apologies this has gotten a bit messy...
Logistically, I think it would make sense to review the PR's in the following order: |
I restored from seed with this PR using an old wallet that has >30 transactions with a wallet lock time of 1 minute (easier testing). While background sync was enabled - all outputs are detected - and when the wallet is unlocked it successfully re-checks those scanned blocks and finds the false change outputs. One time after unlocking the wallet , i noticed a 'wait / forcequit' message box (i assume because alot of outputs where found during background sync - the wallet did not crash, it recovered quickly - assuming because its not async) . After fully synced, i performed a sweep_all transaction to myself which completed successfully. When opening this 'background syncd' wallet with release, the cache file needs to be deleted / recreated:
|
Quality testing thank you @plowsof :)
Can you repro this? That shouldn't happen; processing 30 txs should be close to instantaneous
Yep, monero-project/monero#8619 adds a new field to the wallet cache file to capture background sync'd txs: Older wallet versions wouldn't be able to read a wallet cache file that has updated. |
seems like if i set the lock time to 1 minute, while syncing, wallet unlocked (aimlessly jiggling my mouse around without clicking so i see the visual effects are working / wallet isnt locked) - when the wallet lock screen is meant to display - instead the wallet freezes, (when transactions where seen when unlocked) (and there after each time i click 'ok' to unlock it appears again) Let me try and reproduce it reliably if you are unable to see the effect.. it doesn't happen on release though. Confirmed that my ledger can not see the checkbox to enable the feature |
Good eye, I noticed some jank on my end with a larger wallet sometimes too. How does the latest look on your end? I updated the Monero PR as well. |
You have fixed the problem, it seems to be working flawlessly now (no delays after pressing 'ok', or locking the wallet) , Well done! will test further |
In line with @tobtoht's comment here, I think the GUI will also need a deeper pass to more effectively protect against exfiltration of the spend key and plaintext password when background sync is enabled. I think this should be a pre-requisite for this PR:
And the GUI should aim for this too:
|
have we lost enableBackgroundSync / disableBackgroundSync? compiling complains about these being gone from the latest #8619 |
Yep, this PR is WIP and not ready for testing yet since the latest overhaul to 8619 |
bb6b7f5
to
da67232
Compare
Pairs with monero-project/monero#8619
TL;DR this PR brings 2 core benefits: