hsjoberg / blixt-wallet

Bitcoin Lightning Wallet with focus on usability and user experience
https://blixtwallet.github.io
MIT License
389 stars 68 forks source link

Restore onchain wallet stuck - Android #392

Open Darth-Coin opened 3 years ago

Darth-Coin commented 3 years ago

Environment:

Actual behavior / case:

Steps that I did:

Recover in another phone A

Forced clear logs/data:

Recover in another phone B

Logs files attached lnd-mainnet-android-8-11.log lnd-mainnet-galaxytab-A-android7.log

Observations:

Desired behavior:

Darth-Coin commented 3 years ago

Did another test today:

Here last part of the lnd logs: 00:02:01.137 [INF] CHRE: LightningWallet opened 00:02:01.152 [INF] HSWC: Cleaning circuits from disk for closed channels 00:02:01.152 [INF] HSWC: Finished cleaning: no closed channels found, no actions taken. 00:02:01.152 [INF] HSWC: Restoring in-memory circuit state from disk 00:02:01.155 [INF] HSWC: Payment circuits loaded: num_pending=0, num_open=0 00:02:01.177 [INF] LTND: Channel backup proxy channel notifier starting 00:02:01.177 [INF] ATPL: Instantiating autopilot with active=false, max_channels=5, allocation=1.000000, min_chan_size=20000, max_chan_size=16777215, private=true, min_confs=1, conf_target=3 00:02:01.178 [INF] LTND: We're not running within systemd 00:02:01.179 [INF] LTND: Waiting for chain backend to finish sync, start_height=708399 00:02:02.030 [INF] RPCS: New transaction subscription 00:02:02.150 [INF] BTCN: Registering block subscription: id=2 00:02:02.155 [INF] LNWL: Started rescan from block 0000000000000000000efcb5071de099829de5ddac9713da4fca9ae6ae8de01d (height 697150) for 1 address 00:02:02.156 [INF] BTCN: Canceling block subscription: id=2 00:02:02.179 [INF] LNWL: Catching up block hashes to height 697151, this might take a while 00:02:02.190 [INF] LNWL: Done catching up block hashes 00:02:02.191 [INF] LNWL: Rescanned through block 0000000000000000000c2b06a6ce90c93e496263a537521b5755f68c5c6f65cb (height 697151)

Darth-Coin commented 3 years ago

New update testing: Not sure if is related, but worth mentioning. Blixt v 0.3.11 I did a recent test with GalaxyTab tablet (Android 7), switching to SPV server on my Umbrel local server. It get stuck in sync, even from local IP. So no sync in logs. I switched back to SPV server node.blixtwallet.com (also tried with blank). It sync the blocks, then the line for rescan appear

Rescanned through block .... (height 708375) for 3 addresses Canceling block subscription: id=2

And stays like that forever. Onchain transactions log is lost, all txs that were there before are gone, balance is 0.