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

Speed up wallet sync #20

Closed
the-metalworker opened this issue Dec 30, 2020 · 9 comments
Closed

Speed up wallet sync #20

the-metalworker opened this issue Dec 30, 2020 · 9 comments
Assignees

Comments

@the-metalworker
Copy link

Is your feature request related to a problem? Please describe.
There are two related problems:

  • Initial sync when a new wallet is created
  • Subsequent syncs when the wallet is opened

In the first case, it took my wallet 40 minutes for the initial sync. Yes, 40 minutes before I could use the wallet after I first installed it.

In the second case, I open the wallet about once per week and on average it takes 20 minutes before I can use the wallet.

Describe the solution you'd like
I want the wallet to be usable within a few seconds after opening it. I don't know for sure how to make this happen but this is how the wallet should work while still maintaining privacy guarantees.

Describe alternatives you've considered
Idea for the initial sync problem: if the wallet is new, there should be no need to sync anything.
Only sync from that point forward. This would enable the wallet to be usable right away.

Idea for the subsequent sync problem: have the wallet sync in the background from time to time, that way the next way the user opens the wallet it is most likely already almost synced and the user can either use the wallet right away or only have to wait a short amount of time for the wallet to sync before it is usable.

Another complementary idea (not necessarily a replacement for the above) is to allow the user to pair the wallet with their own full node, ideally over Tor for privacy and NAT traversal benefits, so that they can instantaneously get their wallet balance info from their own full node.

@nighthawk24
Copy link
Member

Thank you for your feedback and solutions @the-metalworker
We are looking in to moving the synchronizer to a background service.

@nighthawk24
Copy link
Member

Following up progress around BlazeSync to speed up syncs zcash/lightwalletd#350

@nighthawk24
Copy link
Member

Update: The fast sync optimization is planned to be included with the SDK upgrades for NU5 launch.

@nighthawk24 nighthawk24 self-assigned this Oct 25, 2021
@nighthawk24
Copy link
Member

@evanstucker-hates-2fa
Copy link

evanstucker-hates-2fa commented Jan 23, 2023

It's been a while since I opened my wallet. It was using about 8GB of storage. I opened it last night around 7pm and it started downloading again. I let it run all night without opening any other apps - in the morning it was at "Scanning... 8%". It's now using 15GB of storage. I've been running it for another 3 hours this morning, and it's now at 11%. This app is not usable for me in it's current state. Is there anything I can do to speed up downloading or scanning time?

@evanstucker-hates-2fa
Copy link

evanstucker-hates-2fa commented Jan 23, 2023

As a side note, I can't use other apps on my phone when Nighthawk is doing this, or it crashes and has to start over, so I've basically been phone-less since last night because I really want it to finish scanning. I'm hoping it will compact storage when it's done - 15GB of storage for a wallet isn't going to work for me - I only have 64GB.

@evanstucker-hates-2fa
Copy link

I really like the idea of having the wallet pointed to my own Zcash node. Anything to make it so that I can actually open it and make a transaction in seconds - even if I haven't opened the wallet in months.

@fakeowl1
Copy link

fakeowl1 commented Mar 9, 2023

First initialization very long. I waited 9 hours(download: 90Mb/s, upload: 85MB/s) for wallet to download necessary items. After that, there is a scanning and it's very long(it may be longer). I can't use my phone when wallet initialized. WTF?

@nighthawk24
Copy link
Member

A faster syncing method is shipped with v2.

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

No branches or pull requests

4 participants