aboutsummaryrefslogtreecommitdiff
path: root/src/core_read.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2021-03-04 14:27:20 -0800
committerPieter Wuille <pieter@wuille.net>2021-06-12 12:38:17 -0700
commit458a345b0590fd2fa04c7d8d70beb8d57e34bbc8 (patch)
tree61cd60377c39986ac8a66617c5d3a446c363812c /src/core_read.cpp
parentc0f0c8eccb04f90940007e0c6aaff56bf2ab35b5 (diff)
downloadbitcoin-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/core_read.cpp')
-rw-r--r--src/core_read.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core_read.cpp b/src/core_read.cpp
index b5fc93886d..6108961010 100644
--- a/src/core_read.cpp
+++ b/src/core_read.cpp
@@ -260,6 +260,7 @@ int ParseSighashString(const UniValue& sighash)
int hash_type = SIGHASH_ALL;
if (!sighash.isNull()) {
static std::map<std::string, int> map_sighash_values = {
+ {std::string("DEFAULT"), int(SIGHASH_DEFAULT)},
{std::string("ALL"), int(SIGHASH_ALL)},
{std::string("ALL|ANYONECANPAY"), int(SIGHASH_ALL|SIGHASH_ANYONECANPAY)},
{std::string("NONE"), int(SIGHASH_NONE)},