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
Updated outdated help command for getblocktemplate (fixes #19625)
* Removed coinbasetxn from the getblocktemplate help outputs
* Added the missing name for transactions in the help outputs
* Added getblocktemplate help outputs for longpollid and default_witness_commitment
* Added more clarity to capabilities, rules, and coinbaseaux for getblocktemplate help (credit to luke-jr)
Co-authored-by: Luke Dashjr <[email protected]>
{"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"},
501
501
{"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"},
542
543
}},
543
544
}},
544
-
{RPCResult::Type::OBJ, "coinbaseaux", "data that should be included in the coinbase's scriptSig content",
545
+
{RPCResult::Type::OBJ_DYN, "coinbaseaux", "data that should be included in the coinbase's scriptSig content",
545
546
{
546
-
{RPCResult::Type::ELISION, "", ""},
547
+
{RPCResult::Type::STR_HEX, "key", "values must be in the coinbase (keys may be ignored)"},
547
548
}},
548
549
{RPCResult::Type::NUM, "coinbasevalue", "maximum allowable input to coinbase transaction, including the generation award and transaction fees (in satoshis)"},
549
-
{RPCResult::Type::OBJ, "coinbasetxn", "information for coinbase transaction",
550
-
{
551
-
{RPCResult::Type::ELISION, "", ""},
552
-
}},
550
+
{RPCResult::Type::STR, "longpollid", "an id to include with a request to longpoll on an update to this template"},
553
551
{RPCResult::Type::STR, "target", "The hash target"},
554
552
{RPCResult::Type::NUM_TIME, "mintime", "The minimum timestamp appropriate for the next block time, expressed in " + UNIX_EPOCH_TIME},
555
553
{RPCResult::Type::ARR, "mutable", "list of ways the block template may be changed",
0 commit comments