psbt: Actually use SIGHASH_DEFAULT

Make the behavior align with the help text by actually using
SIGHASH_DEFAULT as the default sighash for signing PSBTs.
This commit is contained in:
Andrew Chow
2021-07-20 22:05:28 -04:00
parent eb9a1a2c59
commit d3992669df
4 changed files with 6 additions and 6 deletions

View File

@@ -248,7 +248,7 @@ std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strN
int ParseSighashString(const UniValue& sighash)
{
int hash_type = SIGHASH_ALL;
int hash_type = SIGHASH_DEFAULT;
if (!sighash.isNull()) {
static std::map<std::string, int> map_sighash_values = {
{std::string("DEFAULT"), int(SIGHASH_DEFAULT)},