Skip to content

Commit faa51a6

Browse files
author
MarcoFalke
committed
doc: Mark proprietary array optional
Also, remove not needed '\n's. Can be reviewed with --word-diff-regex=.
1 parent 300124d commit faa51a6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,8 +1066,9 @@ static RPCHelpMan testmempoolaccept()
10661066

10671067
static RPCHelpMan decodepsbt()
10681068
{
1069-
return RPCHelpMan{"decodepsbt",
1070-
"\nReturn a JSON object representing the serialized, base64-encoded partially signed Bitcoin transaction.\n",
1069+
return RPCHelpMan{
1070+
"decodepsbt",
1071+
"Return a JSON object representing the serialized, base64-encoded partially signed Bitcoin transaction.",
10711072
{
10721073
{"psbt", RPCArg::Type::STR, RPCArg::Optional::NO, "The PSBT base64 string"},
10731074
},
@@ -1176,7 +1177,7 @@ static RPCHelpMan decodepsbt()
11761177
{
11771178
{RPCResult::Type::STR_HEX, "key", "(key-value pair) An unknown key-value pair"},
11781179
}},
1179-
{RPCResult::Type::ARR, "proprietary", "The input proprietary map",
1180+
{RPCResult::Type::ARR, "proprietary", /*optional=*/true, "The input proprietary map",
11801181
{
11811182
{RPCResult::Type::OBJ, "", "",
11821183
{
@@ -1217,7 +1218,7 @@ static RPCHelpMan decodepsbt()
12171218
{
12181219
{RPCResult::Type::STR_HEX, "key", "(key-value pair) An unknown key-value pair"},
12191220
}},
1220-
{RPCResult::Type::ARR, "proprietary", "The output proprietary map",
1221+
{RPCResult::Type::ARR, "proprietary", /*optional=*/true, "The output proprietary map",
12211222
{
12221223
{RPCResult::Type::OBJ, "", "",
12231224
{

0 commit comments

Comments
 (0)