-
Notifications
You must be signed in to change notification settings - Fork 37.7k
wallet, rpc: add BIP44 account
in createwallet
#29129
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
wallet, rpc: add BIP44 account
in createwallet
#29129
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
account
in createwallet
account
in createwallet
cf8021c
to
523ad34
Compare
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.
Concept ACK
Feels like this could be confused with real/beancounter accounts like we used to support years ago. Maybe |
…s`/`CreateWallet`
The `hd_account` parameter is the BIP44 account used to get the descriptors from the external signer.
523ad34
to
911eba3
Compare
I think this might be a better candidate for a |
I agree, had same thought. Just changed in latest push. |
You mean have a specific RPC for external signers or extending |
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.
Beyond wallet_name, none of the positional parameters make sense as positional, and that goes for this new one too. Migrating this to an options object should probably be done sooner rather than after making the problem worse
Unsure of the final design, but something like |
re: #29129 (comment)
This makes sense, and I added this idea to my list of potential createwalletdescriptor extensions: #29130 (comment) But in general, as long as the createwallet In this case, I'm not sure if it will be more common to have single bitcoin core wallets with multiple hd_accounts, or multiple bitcoin core wallets with single hd_accounts? In the latter case, it really does make sense to add the option to Also agree very much with luke-jr that it would be good not to allow this option to be passed by position, and instead to add an OBJ_NAMED_PARAMS options parameter instead. It probably makes sense to have a separate PR disallowing the other options from being passed by position as well, especially since 6 of the 7 options are bool values, so very easy to confuse if passed by position. |
I strongly agree with that. I could turn this draft until we've that. |
Closing for now. |
This PR adds an
account
parameter increatewallet
RPC. It's theBIP44 account that will be used in
SetupDescriptorScriptPubKeyMans
to fetch the descriptors from the external signer.