Skip to content

Conversation

@S3RK
Copy link
Contributor

@S3RK S3RK commented Feb 26, 2021

Rationale: make descriptor wallets more visible and just a bit easier to setup

bitcoin-cli help createwallet

Before:

Examples:
> bitcoin-cli createwallet "testwallet"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "createwallet", "params": ["testwallet"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/

After

Examples:
> bitcoin-cli createwallet "testwallet"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "createwallet", "params": ["testwallet"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
> bitcoin-cli createwallet "descriptors" false false "" true true true
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "createwallet", "params": ["descriptors", false, false, "", true, true, true]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/

@laanwj laanwj added the Docs label Feb 26, 2021
@laanwj
Copy link
Member

laanwj commented Feb 26, 2021

I've implemented HelpExampleCliNamed here and used it for a createwallet example, feel free to take it over:
https://github.com/laanwj/bitcoin/tree/2021-02-namedcli-help

(I guess we can do a similar HelpExampleCliNamed)

@S3RK S3RK force-pushed the create_descriptor_help branch from 9398176 to 5039e0e Compare March 3, 2021 09:07
@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 3, 2021

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, 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.

Copy link
Member

@laanwj laanwj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK 5039e0e

@laanwj laanwj merged commit 5c9b06d into bitcoin:master Apr 5, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Apr 5, 2021
@Vilasinee99 Vilasinee99 mentioned this pull request Feb 5, 2022
Closed
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants