forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
docs(rpc): introduce GetJsonHelp() to complement ToJson() for Dash-specific objects to aid generating RPC help text
#6872
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a9218b1
rpc: introduce `GetJsonHelp()` to provide help text for Dash RPC objects
kwvg 9de8c9c
trivial: add missing headers
kwvg 7219a29
rpc: `GetJsonHelp()` defs for `CbTx`, `SimplifiedMNList`, final commitm.
kwvg 73da03e
refactor: move LLMQ-specific `ToJson()` definitions to separate file
kwvg ddc698b
refactor: move pending `evo/`-specific definitions to `core_write.cpp`
kwvg ae4e05c
rpc: `GetJsonHelp()` defs for `MNHFTx`, `CAsset{Un,}lock`
kwvg 1be2226
rpc: `GetJsonHelp()` defs for `Quorum{Rotation,Snapshot}`,`RecoveredSig`
kwvg b7eb196
rpc: `GetJsonHelp()` defs for `DeterministicMN{,State{,{Diff}}}`
kwvg f01930b
chore: remove redundant `[[nodiscard]]` attributions in source file
kwvg 56514c7
chore: move RpcResult map outside `GetRpcResult()`
kwvg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,16 +6,20 @@ | |
| #define BITCOIN_EVO_CBTX_H | ||
|
|
||
| #include <bls/bls.h> | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: no \n there is needed |
||
| #include <primitives/transaction.h> | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: no \n there is needed |
||
| #include <univalue.h> | ||
|
|
||
| #include <optional> | ||
| #include <string> | ||
|
|
||
| class BlockValidationState; | ||
| class CBlock; | ||
| class CBlockIndex; | ||
| class CDeterministicMNList; | ||
| class TxValidationState; | ||
| struct RPCResult; | ||
|
|
||
| namespace llmq { | ||
| class CQuorumBlockProcessor; | ||
|
|
@@ -57,6 +61,7 @@ class CCbTx | |
|
|
||
| } | ||
|
|
||
| [[nodiscard]] static RPCResult GetJsonHelp(const std::string& key, bool optional); | ||
| std::string ToString() const; | ||
|
|
||
| [[nodiscard]] UniValue ToJson() const; | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: no \n here is needed