Skip to content

Commit c0405ee

Browse files
committed
rpc: Document that DEFAULT is for Taproot, ALL for everything else
1 parent d399266 commit c0405ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ static RPCHelpMan signrawtransactionwithkey()
785785
},
786786
},
787787
},
788-
{"sighashtype", RPCArg::Type::STR, RPCArg::Default{"DEFAULT"}, "The signature hash type. Must be one of:\n"
788+
{"sighashtype", RPCArg::Type::STR, RPCArg::Default{"DEFAULT for Taproot, ALL otherwise"}, "The signature hash type. Must be one of:\n"
789789
" \"DEFAULT\"\n"
790790
" \"ALL\"\n"
791791
" \"NONE\"\n"

src/wallet/rpc/spend.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ RPCHelpMan signrawtransactionwithwallet()
709709
},
710710
},
711711
},
712-
{"sighashtype", RPCArg::Type::STR, RPCArg::Default{"DEFAULT"}, "The signature hash type. Must be one of\n"
712+
{"sighashtype", RPCArg::Type::STR, RPCArg::Default{"DEFAULT for Taproot, ALL otherwise"}, "The signature hash type. Must be one of\n"
713713
" \"DEFAULT\"\n"
714714
" \"ALL\"\n"
715715
" \"NONE\"\n"
@@ -1167,7 +1167,7 @@ RPCHelpMan walletprocesspsbt()
11671167
{
11681168
{"psbt", RPCArg::Type::STR, RPCArg::Optional::NO, "The transaction base64 string"},
11691169
{"sign", RPCArg::Type::BOOL, RPCArg::Default{true}, "Also sign the transaction when updating (requires wallet to be unlocked)"},
1170-
{"sighashtype", RPCArg::Type::STR, RPCArg::Default{"DEFAULT"}, "The signature hash type to sign with if not specified by the PSBT. Must be one of\n"
1170+
{"sighashtype", RPCArg::Type::STR, RPCArg::Default{"DEFAULT for Taproot, ALL otherwise"}, "The signature hash type to sign with if not specified by the PSBT. Must be one of\n"
11711171
" \"DEFAULT\"\n"
11721172
" \"ALL\"\n"
11731173
" \"NONE\"\n"

0 commit comments

Comments
 (0)