You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #19646: doc: Updated outdated help command for getblocktemplate
c91b241 Updated outdated help command for getblocktemplate (fixes #19625) (Jake Leventhal)
Pull request description:
**Summary of Changes**
* Removed coinbasetxn from the help outputs
* Added the missing name for transactions in the help outputs
* Added help outputs for longpollid and default_witness_commitment
* Added more clarity to capabilities, rules, and coinbaseaux
**Rationale**
The outputs from the help command for `getblocktemplate` are outdated and don't reflect the actual results from `getblocktemplate` (see #19625 for more details)
Fixes #19625.
ACKs for top commit:
laanwj:
ACK c91b241
fjahr:
utACK c91b241
Tree-SHA512: ee443af4bc3b2838dfd92e2705f344256ee785ae720e505fffea9b0ec5b75930e3b1374bae59b36d5da57c85c9aefe4d62504b028b893d6f2914dccf1e34c658
{"mode", RPCArg::Type::STR, /* treat as named arg */ RPCArg::Optional::OMITTED_NAMED_ARG, "This must be set to \"template\", \"proposal\" (see BIP 23), or omitted"},
512
512
{"capabilities", RPCArg::Type::ARR, /* treat as named arg */ RPCArg::Optional::OMITTED_NAMED_ARG, "A list of strings",
{RPCResult::Type::NUM, "weight", "total transaction weight, as counted for purposes of block limits"},
553
554
}},
554
555
}},
555
-
{RPCResult::Type::OBJ, "coinbaseaux", "data that should be included in the coinbase's scriptSig content",
556
+
{RPCResult::Type::OBJ_DYN, "coinbaseaux", "data that should be included in the coinbase's scriptSig content",
556
557
{
557
-
{RPCResult::Type::ELISION, "", ""},
558
+
{RPCResult::Type::STR_HEX, "key", "values must be in the coinbase (keys may be ignored)"},
558
559
}},
559
560
{RPCResult::Type::NUM, "coinbasevalue", "maximum allowable input to coinbase transaction, including the generation award and transaction fees (in satoshis)"},
560
-
{RPCResult::Type::OBJ, "coinbasetxn", "information for coinbase transaction",
561
-
{
562
-
{RPCResult::Type::ELISION, "", ""},
563
-
}},
561
+
{RPCResult::Type::STR, "longpollid", "an id to include with a request to longpoll on an update to this template"},
564
562
{RPCResult::Type::STR, "target", "The hash target"},
565
563
{RPCResult::Type::NUM_TIME, "mintime", "The minimum timestamp appropriate for the next block time, expressed in " + UNIX_EPOCH_TIME},
566
564
{RPCResult::Type::ARR, "mutable", "list of ways the block template may be changed",
0 commit comments