Repository navigation
Conversation
|
ACK e187e0e |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. 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. |
There was a problem hiding this comment.
No objection to updating the docs, but I think the real issue is that the docs aren't hidden. For some reason no one ever removed them from the rpc help overview. I'd suggest to do that instead.
And once the RPCs are hidden, I think we can assume that anyone reading their help text understand POW. So a very brief "testing only because ridiculously inefficient" is enough.
| return RPCHelpMan{ | ||
| "generatetodescriptor", | ||
| "\nMine blocks immediately to a specified descriptor (before the RPC call returns)\n", | ||
| "\nMine blocks immediately to a specified descriptor (before the RPC call returns)\n" |
There was a problem hiding this comment.
| "\nMine blocks immediately to a specified descriptor (before the RPC call returns)\n" | |
| "Mine blocks immediately to a specified descriptor (before the RPC call returns)\n" |
While touching this, there is no need to keep the \ns in the beginning and end. See https://github.com/bitcoin/bitcoin/pull/23714/files
There was a problem hiding this comment.
suggestions for each of these helps
- period at end of sentences
- shorten the longer line
- maybe wrap maxtries with backticks
- omit newlines at start and end (as mentioned by Marco)
- "\nMine blocks immediately to a specified descriptor (before the RPC call returns)\n"
- "Only maxtries hash attempts will be performed. If no valid block can be found among those,\n"
- "an error will be returned. This RPC is only intended for testing purposes, as it is highly inefficient and extremely\n"
- "unlikely to succeed on mainnet\n",
+ "Mine blocks immediately to a specified descriptor (before the RPC call returns).\n"
+ "Only `maxtries` hash attempts will be performed. If no valid block can be found among those,\n"
+ "an error will be returned. This RPC is only intended for testing purposes, as it is highly\n"
+ "inefficient and extremely unlikely to succeed on mainnet.",output
Mine blocks immediately to a specified descriptor (before the RPC call returns).
Only `maxtries` hash attempts will be performed. If no valid block can be found among those,
an error will be returned. This RPC is only intended for testing purposes, as it is highly
inefficient and extremely unlikely to succeed on mainnet.
There was a problem hiding this comment.
If this turns into a pull to rework the docs, the "immediately" and "(before the RPC call returns)" can be removed. It should be clear from the return value (the block hash) that the block was generated before the has was returned.
|
Concept ACK |
1 similar comment
|
Concept ACK |
| "\nMine blocks immediately to a specified descriptor (before the RPC call returns)\n", | ||
| "\nMine blocks immediately to a specified descriptor (before the RPC call returns)\n" | ||
| "Only maxtries hash attempts will be performed. If no valid block can be found among those,\n" | ||
| "an error will be returned. This RPC is only intended for testing purposes, as it is highly inefficient and extremely\n" |
There was a problem hiding this comment.
nit: This is wrong
| "an error will be returned. This RPC is only intended for testing purposes, as it is highly inefficient and extremely\n" | |
| "an empty array will be returned. This RPC is only intended for testing purposes, as it is highly inefficient and extremely\n" |
|
🐙 This pull request conflicts with the target branch and needs rebase. Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft". |
|
@sipa Are you still working on this? |
|
Closing for now, but this can be reopened anytime (or a new pull can be created). |
No description provided.