-
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 cant connect to signet node running on localhost #67
Comments
Strange, I can't reproduce this. On my side, everything proceeds as described in your logs, but on the second connection, after the debug message with Bitcoin Core failing to reload the wallet There are two differences from my setup that are visible though:
ccing @shesek (the author of bwt) for further thoughts. |
hi @craigraw Yes I imagine a custom signet chain shouldn't matter, since the Signet PR that was merged recently didn't seem to contain anything that would distinguish the default network from a custom one, but I could be wrong on that. Yes I am running bitcoin core master as of 02/05 and I'll try this again with the 0.21.0 branch |
This is indeed because you're running a newer Bitcoin Core release. The error code for the 'wallet already loaded' message was recently changed (following a request made by myself, actually) and didn't get updated in bwt yet, so it doesn't recognize the error. I was planning to update this when v0.22 gets released, but I'll look into doing this sooner. |
Hi @shesek , thanks very much |
@7hacker As a temporary workaround, you can unload the wallet before connecting Sparrow with |
Thanks @shesek , I'll use this workaround since another issue is that the bitcoin-core 0.21.0 branch doesn't have the tools to mine nodes on a custom signet |
Try `getwalletinfo` first and only call `loadwallet` if that fails. This also makes detecting the 'already loaded' error message unnecessary, instead of having to detect *three* different ways it could be returned by different Bitcoin Core versions (<v0.21, ==v0.21 and >v0.21). Also see: sparrowwallet/sparrow#67 (comment)
@7hacker A fix was released in bwt v0.2.3 (but note that you'll only get it when Sparrow is updated to use the new bwt release). |
Sparrow has been updated to use bwt 0.2.3. Thanks @shesek! |
@craigraw That was fast! 🔥 |
I have a signet node running with server=1 in bitcoin.conf
I boot sparrow with -n signet and -l DEBUG
In the preferences Sparrow's test connection works fine, a banner is displayed and a wallet is also created by sparrow in the bitcoin datadir:
Then immediately after exiting the preferences pane, Sparrow logs cant connect to the signet node anymore :
Restarting sparrow and going back to the preferences pane to test the connection leads to a failure.
The only way to re-establish the connection is to delete sparrow's wallet in bitcoin core's datadir and the ~/.sparrow/ directory where I imagine more state is stored.
The text was updated successfully, but these errors were encountered: