cake_wallet
cake_wallet copied to clipboard
android wallet resyncing from scratch even if already synced
My android wallet had finished syncing yesterday and it said Synchronized. But today it started syncing again on its own with 2 million blocks to go. I have downloaded the app from github releases.
If it matters I've set background sync mode to Aggressive.
and now it shows balance 0.0 even though it says Synchronized.
- Turn off background sync (settings > connection)
- Rescan blockchain using a restore date from before your first transaction (settings > connection > rescan)
- see if the problem goes away
using github releases this has been happening the last two releases as well.
Follow suggestion, report back
edit: do not rescan if you dont have to. OP says missing transactions (have to rescan)
Follow suggestion, report back
edit: do not rescan if you dont have to. OP says missing transactions (have to rescan)
i had a full chain scan from forever ago. two updates ago it wiped it. did a full scan again. latest update wiped the full scan and started me at 0 again. as long as its an option to start from 0, regardless if you think i should be starting from x more recent date, this is an issue.
Users:
- Turn off background sync
Cake:
- Completely remove yur background sync
- Use the View-key background sync pr by jberman
- Don't implement without granular controls.
.. its broken and breaks your wallets has been breaking my wallets since day 1 and has never worked as intended.
when it does sync, it syncs from 0. Or it corrupts my cache and then syncs from 0. all the while leaving my spend keys vulnerable.
the bug appears to be that the sync doesnt end gracefully, if at all, and sometimes writes to the file multiple times (while opening cake + its already syncing). you can visually see it, as the "blocks remaining" will flicker between expected and broken cache syncing from scratch.
Tldr - Users:
- Disable background sync
Cake:
- Remove your implentation
- Use jbermans
- Dont cut corners on bg sync.
This is new to me. I don't think I've ran into this issue and I've used both Unobtrusive and Aggressive background sync for months. Could be an issue with the OS killing CW sooner than expected. I'll open this internally, thanks for the report.
And for reference what version of Android are you guys using?
And for reference what version of Android are you guys using?
LOS 20 - Android 13
Just experienced the same problem as OP
Only difference wallet was on unobtrusive mode
Cake wallet app battery usage was on "Restrictive"
Changed to "Optimized", closed out the app, reopened, and it was fixed. Not sure if this was a coincidence.
Just lost entire wallet history including sub accounts
usually the bug syncs from genesis, this time it showed synchronized as if i entered "today" and rescanned. 0 transaction history
Temporary fix in progress for this! Until we can overhaul the background sync.
just posting to share my pain.
@nahuhh Just making sure.... is this with background sync on? Or are you running into this with it off also?
That's with it on. Left it on to diagnose the issue.
another related issue i observed: it ONCE loaded the wrong wallet cache when "sync all" was enabled.
meaning, the transactions screen showed tge transactions of another wallet, and the sync bar kept flashing 2 different "blocks remaining".
(ive turned it off since your last comment)
Hey all. Cake Wallet v4.13.3 and Monero.com v1.10.3 has been released and includes fixes for background sync and internal backups incase of wallet corruption. Now when you turn Background sync on, it will ask you to Allow Cake Wallet to run in unrestricted battery mode (Android only), which will prevent the OS from force closing Cake in the background, and allow background sync to work better. This is optional, but recommended. These two things in combination should prevent any wallet corruption, and if there is it will restore last known good wallet open.
Documentation will be updated soon but Aggressive is now every 3 hours, and Unobtrusive is now every 12.
Still having issues unfortunately...background sync was fine for awhile. Today I opened it up and suddenly I'm 50,000+ blocks behind. I was caught up the day before.
Just wanted to give more details. "Background sync mode" was on aggressive, and "App battery usage" was on unrestricted. It also deleted all my account and address names and they're back to "Untitled accounts"
I'm wondering if this might be a remnant of the previous version? Maybe if I uninstall and reinstall if it would fix the problem...
Is anyone else reporting this still or just me?
Happened again...
Getting same error, have synced my wallet twice now and it's in the third. Starts showing balances and everything looks good. Gets down to the last 180 blocks are so, slows WAY down and then syncs and shows balance at zero and shows no transactions excepts one changelly trade done years ago still chills in transaction page. I just turned off background sync and am trying to restore the wallet to a different, clean phone....
Getting same error, have synced my wallet twice now and it's in the third. Starts showing balances and everything looks good. Gets down to the last 180 blocks are so, slows WAY down and then syncs and shows balance at zero and shows no transactions excepts one changelly trade done years ago still chills in transaction page. I just turned off background sync and am trying to restore the wallet to a different, clean phone....
I had to do the same thing. When it works it's great. Appreciate the functionality, but every time this happens it is an ordeal to go through, and worse than not having it. Especially when you are expecting to be able to just open it up and use it on the spot for something then you have to wait half an hour to an hour to sync everything from scratch again.
Please
- Ship it disabled
- remove it
i prefer option 2. Thia feature hurts the brand
I'm uninstalling cake wallet now for good.
After the latest update on android (CalyxOS) to 4.15.2 cake lost my accounts and subaddresses and tx history again - If it was just the constant sync from scratch every time I want to open and use cake wallet.
Please
- Ship it disabled
- remove it
i prefer option 2. Thia feature hurts the brand
pinging @OmarHatem28 @tuxpizza ! Enough is enough
I personally havent used cake in > 1 month. After > 1 yr, I'm no longer interested in resyncing weekly.
The feature has ALWAYS been broken and should NEVER have been shipped in a release. Leaving spend keys unlocked 24/7 is fkn retarded anyway.
Also, fkn delete that live status bullshit. Tf
It shouldnt take this long. 💢
We've been debating removing it but we recently decided to add a warning message due to its "experimental" nature, which will be in next update.
It's already disabled by default it's not like it's forced on users in any way.
It was enabled by default and persists. its broken on android, not "experimental".
risk vs reward. useless and insecure feature. Kill it
It's not enabled by default. Only reason it would be enabled is if you were restoring from a backup that had it enabled.
I'm in favor of removing it, but some people still want it there and use it just fine every day..... so we'll add a warning to facilitate its existence while letting users know it may cause issues.
experimental (broken) = dont push it to release channels...
instead, users can leave the app running in recents.
Ios doesnt appear to have the same issue, butbthis is literally expensive (resyncing 30gb isnt free) AND leaves your spend keys unlocked (crazy bs feature)