mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Add support for SIGHASH_DEFAULT in RPCs, and make it default
For non-Taproot signatures, this is interpreted as SIGHASH_ALL.
This commit is contained in:
parent
c0f0c8eccb
commit
458a345b05
6 changed files with 18 additions and 10 deletions
|
|
@ -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)},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue