-
Notifications
You must be signed in to change notification settings - Fork 268
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
Allow users to have multiple wallets in bitcoind #1334
Conversation
…allows the users to have multiple bitcoin wallets in bitcoind.
I was able to reproduce #1330 on testnet and check that this PR fixes it, but as mentioned it's worth adding a few lines to our documentation. |
Open question: if we do that, why don't we allow the user to specify which wallet to use? |
Why not :) as long as we can provide additional features without damaging the 0-conf setup i think we can add it. |
Note for reviewers: at commit 44e009e this PR reads the bitcoin core wallet name from the configuration. Under some circumstances this introduces a new way the users can hurt themselves: between the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I haven't tested E2E (I'll let sstone re-do the test he did on testnet).
Under some circumstances this introduces a new way the users can hurt themselves
I think this is fine. Users that do that can't complain if bad things happen afterwards IMO, they have to know what they're doing.
44e009e
to
411fb84
Compare
On a second thought there are some other cases where the users can hurt themselves and even lose funds (think of swapping wallet and shutdown scripts usage), as a precaution i reverted the changes to implement only the original scope of this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a wording change in our README.
Co-Authored-By: Fabrice Drouin <sstone@users.noreply.github.com>
In this PR we force the usage of the default bitcoind wallet (named ""). This is necessary to allow the user to have multiple bitcoind wallets because when there are more than one we need to specify which wallet to use in the RPC calls. Fixes #1330.
Note for reviewers: the extra path in the bitcoin RPC URL identifies the wallet to be used and can be used in all the others RPC too. By default bitcoind has an unnamed wallet
""
and eclair always expect to have that, users can add new wallets but should never rename or remove the default wallet (maybe we can add a few lines in the README for this).