- Clarify rules, capabilities, coinbaseaux, coinbasetxn
- Specify name of ’transactions’ key
Clean merge to 0.20
Clean merge to 0.20
391@@ -391,10 +392,11 @@ static UniValue getblocktemplate(const JSONRPCRequest& request)
392 }},
393 {RPCResult::Type::OBJ, "coinbaseaux", "data that should be included in the coinbase's scriptSig content",
394 {
395+ {RPCResult::Type::STR_HEX, "str", "values must be in the coinbase (keys may be ignored)"},
396 {RPCResult::Type::ELISION, "", ""},
Then it should use the proper type OBJ_DYN
. Elision is used to omit documentation (e.g to avoid redundancy). It shouldn’t be used as a workaround to change the structure of the rpc result in the doc
0diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp
1index 9200ac3bf7..560c46a13c 100644
2--- a/src/rpc/mining.cpp
3+++ b/src/rpc/mining.cpp
4@@ -542,10 +542,9 @@ static UniValue getblocktemplate(const JSONRPCRequest& request)
5 {RPCResult::Type::NUM, "weight", "total transaction weight, as counted for purposes of block limits"},
6 }},
7 }},
8- {RPCResult::Type::OBJ, "coinbaseaux", "data that should be included in the coinbase's scriptSig content",
9+ {RPCResult::Type::OBJ_DYN, "coinbaseaux", "data that should be included in the coinbase's scriptSig content",
10 {
11 {RPCResult::Type::STR_HEX, "str", "values must be in the coinbase (keys may be ignored)"},
12- {RPCResult::Type::ELISION, "", ""},
13 }},
14 {RPCResult::Type::NUM, "coinbasevalue", "maximum allowable input to coinbase transaction, including the generation award and transaction fees (in satoshis)"},
15 {RPCResult::Type::OBJ, "coinbasetxn", "information for coinbase transaction (in same format as elements of 'transactions' above)",
- Clarify rules, capabilities, coinbaseaux, coinbasetxn
- Specify name of 'transactions' key
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
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.
Labels
RPC/REST/ZMQ
Mining