diff options
author | Pieter Wuille <pieter@wuille.net> | 2021-03-04 14:27:20 -0800 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-06-12 12:38:17 -0700 |
commit | 458a345b0590fd2fa04c7d8d70beb8d57e34bbc8 (patch) | |
tree | 61cd60377c39986ac8a66617c5d3a446c363812c /src/rpc/rawtransaction.cpp | |
parent | c0f0c8eccb04f90940007e0c6aaff56bf2ab35b5 (diff) | |
download | bitcoin-458a345b0590fd2fa04c7d8d70beb8d57e34bbc8.tar.xz |
Add support for SIGHASH_DEFAULT in RPCs, and make it default
For non-Taproot signatures, this is interpreted as SIGHASH_ALL.
Diffstat (limited to 'src/rpc/rawtransaction.cpp')
-rw-r--r-- | src/rpc/rawtransaction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 2fa033aee3..ccb3123714 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -753,7 +753,8 @@ static RPCHelpMan signrawtransactionwithkey() }, }, }, - {"sighashtype", RPCArg::Type::STR, RPCArg::Default{"ALL"}, "The signature hash type. Must be one of:\n" + {"sighashtype", RPCArg::Type::STR, RPCArg::Default{"DEFAULT"}, "The signature hash type. Must be one of:\n" + " \"DEFAULT\"\n" " \"ALL\"\n" " \"NONE\"\n" " \"SINGLE\"\n" |