* 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 <luke+github_public@dashjr.org>
{"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"},
{"capabilities",RPCArg::Type::ARR,/* treat as named arg */RPCArg::Optional::OMITTED_NAMED_ARG,"A list of strings",
{
{"support",RPCArg::Type::STR,RPCArg::Optional::OMITTED,"client side supported feature, 'longpoll', 'coinbasetxn', 'coinbasevalue', 'proposal', 'serverlist', 'workid'"},
{"str",RPCArg::Type::STR,RPCArg::Optional::OMITTED,"client side supported feature, 'longpoll', 'coinbasevalue', 'proposal', 'serverlist', 'workid'"},
},
},
{"rules",RPCArg::Type::ARR,RPCArg::Optional::NO,"A list of strings",
{
{"support",RPCArg::Type::STR,RPCArg::Optional::OMITTED,"client side supported softfork deployment"},
{"segwit",RPCArg::Type::STR,RPCArg::Optional::NO,"(literal) indicates client side segwit support"},
{"str",RPCArg::Type::STR,RPCArg::Optional::OMITTED,"other client side supported softfork deployment"},
{RPCResult::Type::NUM,"weight","total transaction weight, as counted for purposes of block limits"},
}},
}},
{RPCResult::Type::OBJ,"coinbaseaux","data that should be included in the coinbase's scriptSig content",
{RPCResult::Type::OBJ_DYN,"coinbaseaux","data that should be included in the coinbase's scriptSig content",
{
{RPCResult::Type::ELISION,"",""},
{RPCResult::Type::STR_HEX,"key","values must be in the coinbase (keys may be ignored)"},
}},
{RPCResult::Type::NUM,"coinbasevalue","maximum allowable input to coinbase transaction, including the generation award and transaction fees (in satoshis)"},
{RPCResult::Type::OBJ,"coinbasetxn","information for coinbase transaction",
{
{RPCResult::Type::ELISION,"",""},
}},
{RPCResult::Type::STR,"longpollid","an id to include with a request to longpoll on an update to this template"},