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

During initial sync via neutrino, if no peers are available/reachable, lnd crashes #6292

Closed
losh11 opened this issue Feb 23, 2022 · 2 comments
Labels
bug Unintended code behaviour neutrino Lightweight neutrino backend-type

Comments

@losh11
Copy link

losh11 commented Feb 23, 2022

If the wallet is in its initial sync using neutrino, whilst being recovered, and midway through the sync looses connection to other nodes, whilst still having access to networking, lnd will panic crash with error message unable to synchronize wallet to chain: unable to perform wallet recovery.

I don't think this is really a concern with regular laptop/pc, but in our usecase we are building a mobile. From our previous experience building non-custodial mobile wallets, we've had users find that certain ISPs and mobile operators 'ban' access to the bitcoin ports. We've also seen issues when users devices are switching between wifi/mobile data, one of which bans access to the bitcoin ports; these situations will lead lnd to panic crash.

Your environment

  • lnd: 0.14.2
  • Ubuntu 20.04 WSL2
  • neutrino
@Roasbeef Roasbeef added bug Unintended code behaviour neutrino Lightweight neutrino backend-type labels Feb 23, 2022
@Roasbeef
Copy link
Member

Roasbeef commented Feb 23, 2022

Do you have any logs that preceded that final log message? Are you using connect or addpeer in the neutrino config?

Also if there another error at the end of that log fragment that's being cut off?

@guggero
Copy link
Collaborator

guggero commented Jun 23, 2023

This was fixed by btcsuite/btcwallet#870 which was included in the btcwallet version bump PR #7767.

@guggero guggero closed this as completed Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unintended code behaviour neutrino Lightweight neutrino backend-type
Projects
None yet
Development

No branches or pull requests

3 participants