-
Notifications
You must be signed in to change notification settings - Fork 192
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
Sparrow will no longer connect to bitcoin core #724
Comments
Are you able to successfully connect to your node via the command line?
|
It appears so, here is the output:
|
This is due to Bitcoin Core changing the default wallet type to descriptor wallets. See #488. To solve this, start by upgrading Sparrow to the latest release. Shut down both Bitcoin Core and Sparrow, delete the |
That fixed it, thank you. |
I got the exact same issue like OP but I already use Sparrow Wallet 1.7.1 (Linux) and Bitcoin Core 23.0.0 (Windows) when trying to connect.
Then it works, but: Only until I shut down Bitcoin Core and restart it. Then I have to follow steps 1-5 again. I really appreciate any help! |
I can only tell you that mine still works even if restart the Bitcoin Core. I can only suggest trying to delete the files in Sparrow's folder. Even though you haven't created a wallet perhaps there is something there anyways? Otherwise I don't know. |
Yeah I did this. And it works! But when I shut down Bitcoin Core anytime and try it again, it won't work until I delete that folder "sparrow" that gets created after successful connection again. |
I hope I'm not belaboring the point, but I was referring to Sparrow's working folders on your Linux machine not the Bitcoin core's Sparrow folder mentioned in your post. Might not work, but worth a try perhaps if you haven't already. Sorry if this was not clear. |
@ExchangeREC take a look at #770 - it might be related. Are you getting any errors in your Sparrow log? (Help menu) |
@xserver1992 ah sorry mate, I misunderstood you! Thanks for the suggestion but within the "wallets" folder on Linux, there is nothing inside (I did "ls -la" in the command line) .. @craigraw thanks! The problem is similar but the only solution working for me right now is:
EDIT: This more looks like this issue to me (please keep in mind that I am kinda nooby and my understanding could be wrong :-)) EDIT 2: When shooting the "getwalletinfo"-command into the Bitcoin Core Console, it shows me the following:
That is what my sparrow.log file shows about this:
|
@ExchangeREC I think this is the "problem":
Once you have Sparrow connected to Bitcoin Core, create a wallet (a hot wallet is file) and the problem should go away. It appears that the Oddly enough I can't reproduce this myself, even with a freshly created Bitcoin Core wallet without any keys imported -
|
Ok, I've managed to recreate it - the field The current solution is to stop both Bitcoin Core and Sparrow, delete the Bitcoin Core wallet, restart both and then make sure to create a wallet in Sparrow before restarting either application (to ensure some keys are added to the Bitcoin Core wallet). |
Wow mate - looks like it works! Thank you SO much! |
So in case of setting up a hardware wallet: Should I create a hot software wallet as described by you before importing or setting up a hardware wallet? |
No, you can create any wallet. The important part is that the wallet is saved, and Sparrow adds the public keys it references to the Bitcoin Core wallet it creates. |
Great, thanks! |
Sparrow suddenly won't connect to the bitcoin core even though it was previously working. I have not changed any of the configuration. Note that it won't connect locally on the bitcoin core machine either (again, used to work).
Here is the error that appears on the test connection screen:
Could not connect:
Check if Bitcoin Core is running, and the authentication details are correct.
See https://sparrowwallet.com/docs/connect-node.html
Here is the error log:
2022-10-28 10:55:28,139 ERROR [JavaFX Application Thread] c.s.s.n.ElectrumServer [null:-1] Failed to start BWT
dev.bwt.libbwt.BwtException: JSON-RPC error: JSON decode error: missing field
keypoololdest
at line 1 column 334at com.sparrowwallet.merged.module@1.7.0/dev.bwt.libbwt.daemon.NativeBwtDaemon.start(Native Method)
at com.sparrowwallet.sparrow@1.7.0/com.sparrowwallet.sparrow.net.Bwt.start(Unknown Source)
at com.sparrowwallet.sparrow@1.7.0/com.sparrowwallet.sparrow.net.Bwt.start(Unknown Source)
at com.sparrowwallet.sparrow@1.7.0/com.sparrowwallet.sparrow.net.Bwt$ConnectionService$1.call(Unknown Source)
at com.sparrowwallet.sparrow@1.7.0/com.sparrowwallet.sparrow.net.Bwt$ConnectionService$1.call(Unknown Source)
at javafx.graphics@18/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at javafx.graphics@18/javafx.concurrent.Service.lambda$executeTask$6(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at javafx.graphics@18/javafx.concurrent.Service.lambda$executeTask$7(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
2022-10-28 10:55:28,140 ERROR [JavaFX Application Thread] c.s.s.p.ServerPreferencesController [null:-1] Connection error
com.sparrowwallet.sparrow.net.ServerException: Check if Bitcoin Core is running, and the authentication details are correct.
at com.sparrowwallet.sparrow@1.7.0/com.sparrowwallet.sparrow.net.ElectrumServer$ConnectionService$1.call(Unknown Source)
at com.sparrowwallet.sparrow@1.7.0/com.sparrowwallet.sparrow.net.ElectrumServer$ConnectionService$1.call(Unknown Source)
at javafx.graphics@18/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at javafx.graphics@18/javafx.concurrent.Service.lambda$executeTask$6(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at javafx.graphics@18/javafx.concurrent.Service.lambda$executeTask$7(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
The authentication information is correct in the bitcoin core configuration file (like I said, used to work).
It seems to halfway work as the following screen appears on the bitcoin core:
I have Windows 10 on both machines, Sparrow v1.7.0 and bitcoin core v23.0.
java version "1.8.0_351"
Java(TM) SE Runtime Environment (build 1.8.0_351-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.351-b10, mixed mode)
Any suggestions appreciated.
The text was updated successfully, but these errors were encountered: