doc: Mark proprietary array optional

Also, remove not needed '\n's.
Can be reviewed with --word-diff-regex=.
This commit is contained in:
MarcoFalke committed 2022-01-04 17:57:50 +01:00
1 parent 300124dedf
commit faa51a6aa9
1 file changed
+5 -4
+5 -4
View File
@@ -1066,8 +1066,9 @@ static RPCHelpMan testmempoolaccept()
static RPCHelpMan decodepsbt() static RPCHelpMan decodepsbt()
{ {
return RPCHelpMan{"decodepsbt", return RPCHelpMan{
"\nReturn a JSON object representing the serialized, base64-encoded partially signed Bitcoin transaction.\n", "decodepsbt",
"Return a JSON object representing the serialized, base64-encoded partially signed Bitcoin transaction.",
{ {
{"psbt", RPCArg::Type::STR, RPCArg::Optional::NO, "The PSBT base64 string"}, {"psbt", RPCArg::Type::STR, RPCArg::Optional::NO, "The PSBT base64 string"},
}, },
@@ -1176,7 +1177,7 @@ static RPCHelpMan decodepsbt()
{ {
{RPCResult::Type::STR_HEX, "key", "(key-value pair) An unknown key-value pair"}, {RPCResult::Type::STR_HEX, "key", "(key-value pair) An unknown key-value pair"},
}}, }},
{RPCResult::Type::ARR, "proprietary", "The input proprietary map", {RPCResult::Type::ARR, "proprietary", /*optional=*/true, "The input proprietary map",
{ {
{RPCResult::Type::OBJ, "", "", {RPCResult::Type::OBJ, "", "",
{ {
@@ -1217,7 +1218,7 @@ static RPCHelpMan decodepsbt()
{ {
{RPCResult::Type::STR_HEX, "key", "(key-value pair) An unknown key-value pair"}, {RPCResult::Type::STR_HEX, "key", "(key-value pair) An unknown key-value pair"},
}}, }},
{RPCResult::Type::ARR, "proprietary", "The output proprietary map", {RPCResult::Type::ARR, "proprietary", /*optional=*/true, "The output proprietary map",
{ {
{RPCResult::Type::OBJ, "", "", {RPCResult::Type::OBJ, "", "",
{ {