nighthawk-apps / nighthawk-wallet-android

Old version of Nighthawk Android Wallet. No longer maintained.
https://nighthawkwallet.com
Apache License 2.0
33 stars 14 forks source link

Speed up wallet sync #20

Closed the-metalworker closed 7 months ago

the-metalworker commented 3 years ago

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

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 commented 3 years ago

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

nighthawk24 commented 3 years ago

Following up progress around BlazeSync to speed up syncs https://github.com/zcash/lightwalletd/issues/350

nighthawk24 commented 3 years ago

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

nighthawk24 commented 2 years ago

Incoming https://hackmd.io/@str4d/dagsync-graph-aware-zcash-wallets

evanstucker-hates-2fa commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 7 months ago

A faster syncing method is shipped with v2.