-
Notifications
You must be signed in to change notification settings - Fork 100
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
neutrino sync and shutdown problems #1934
Comments
I've looked into #3 a bit. Currently bchwallet will just not let you quit while it is doing recovery from the wallet birthday. Specifically, it will not let you lock the wallet. btcwallet has a fix for this but unfortunately it causes the wallet to panic unless shutting down. So, any attempt to lock the wallet while recovery is happening blows up dexc. We can shut down, just not lock. This is locking the wallet with the UI while recovery is happening with btc currently:
Also, bchwallet seems to think we are in sync and starts the recovery before the backend is ready. This may be a testnet thing, will look into it more. So, I guess I will push the panic inducing changes to bchwallet. Then we need to be careful as to not lock the wallet as it rescans for the wallet birthday. Or change btcwallet and bchwallet so that they can stop in the middle of the recovery and also not panic, which may or may not be a large diff. The point of panic https://github.com/btcsuite/btcwallet/blob/27f244e8454076f5afcc5be6266c3762f902800f/wallet/chainntfns.go#L115-L119 The problematic recovery that we can not currently escape unless shutdown https://github.com/btcsuite/btcwallet/blob/27f244e8454076f5afcc5be6266c3762f902800f/wallet/wallet.go#L665-L792 |
I made an issue and will see if anyone has a comment about it. btcsuite/btcwallet#827 Again, bchwallet does not panic here, it just does not let you lock which is why client will hang on wallet lock until recovery is finished. I don't really want to open a pr with bchwallet that causes more problems. Maybe can get btcwallet fixed first then apply those changes to bchwallet. |
The btcwallet is also #1690 with a panic in |
There are a number of neutrino-related issues that only really pop out with testnet or mainnet where sync can take actual time.
Originally posted by @chappjc in #1931 (comment)
The text was updated successfully, but these errors were encountered: