Skip to content

Commit fab0d99

Browse files
author
MarcoFalke
committed
style: Remove whitespace
Can be reviewed via --ignore-all-space
1 parent f2074ee commit fab0d99

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -535,32 +535,33 @@ static std::string GetAllOutputTypes()
535535

536536
static RPCHelpMan decodescript()
537537
{
538-
return RPCHelpMan{"decodescript",
539-
"\nDecode a hex-encoded script.\n",
540-
{
541-
{"hexstring", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "the hex-encoded script"},
542-
},
543-
RPCResult{
544-
RPCResult::Type::OBJ, "", "",
545-
{
546-
{RPCResult::Type::STR, "asm", "Script public key"},
547-
{RPCResult::Type::STR, "type", "The output type (e.g. "+GetAllOutputTypes()+")"},
548-
{RPCResult::Type::STR, "address", /* optional */ true, "The Bitcoin address (only if a well-defined address exists)"},
549-
{RPCResult::Type::STR, "p2sh", /* optional */ true, "address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH)"},
550-
{RPCResult::Type::OBJ, "segwit", /* optional */ true, "Result of a witness script public key wrapping this redeem script (not returned if the script is a P2SH or witness)",
551-
{
552-
{RPCResult::Type::STR, "asm", "String representation of the script public key"},
553-
{RPCResult::Type::STR_HEX, "hex", "Hex string of the script public key"},
554-
{RPCResult::Type::STR, "type", "The type of the script public key (e.g. witness_v0_keyhash or witness_v0_scripthash)"},
555-
{RPCResult::Type::STR, "address", /* optional */ true, "The Bitcoin address (only if a well-defined address exists)"},
556-
{RPCResult::Type::STR, "p2sh-segwit", "address of the P2SH script wrapping this witness redeem script"},
557-
}},
558-
}
559-
},
560-
RPCExamples{
561-
HelpExampleCli("decodescript", "\"hexstring\"")
562-
+ HelpExampleRpc("decodescript", "\"hexstring\"")
563-
},
538+
return RPCHelpMan{
539+
"decodescript",
540+
"\nDecode a hex-encoded script.\n",
541+
{
542+
{"hexstring", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "the hex-encoded script"},
543+
},
544+
RPCResult{
545+
RPCResult::Type::OBJ, "", "",
546+
{
547+
{RPCResult::Type::STR, "asm", "Script public key"},
548+
{RPCResult::Type::STR, "type", "The output type (e.g. " + GetAllOutputTypes() + ")"},
549+
{RPCResult::Type::STR, "address", /* optional */ true, "The Bitcoin address (only if a well-defined address exists)"},
550+
{RPCResult::Type::STR, "p2sh", /* optional */ true, "address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH)"},
551+
{RPCResult::Type::OBJ, "segwit", /* optional */ true, "Result of a witness script public key wrapping this redeem script (not returned if the script is a P2SH or witness)",
552+
{
553+
{RPCResult::Type::STR, "asm", "String representation of the script public key"},
554+
{RPCResult::Type::STR_HEX, "hex", "Hex string of the script public key"},
555+
{RPCResult::Type::STR, "type", "The type of the script public key (e.g. witness_v0_keyhash or witness_v0_scripthash)"},
556+
{RPCResult::Type::STR, "address", /* optional */ true, "The Bitcoin address (only if a well-defined address exists)"},
557+
{RPCResult::Type::STR, "p2sh-segwit", "address of the P2SH script wrapping this witness redeem script"},
558+
}},
559+
},
560+
},
561+
RPCExamples{
562+
HelpExampleCli("decodescript", "\"hexstring\"")
563+
+ HelpExampleRpc("decodescript", "\"hexstring\"")
564+
},
564565
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
565566
{
566567
RPCTypeCheck(request.params, {UniValue::VSTR});

0 commit comments

Comments
 (0)