aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.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/wallet/wallet.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/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index ac96e8fcaf..2485a955ca 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -1807,7 +1807,7 @@ bool CWallet::SignTransaction(CMutableTransaction& tx) const
coins[input.prevout] = Coin(wtx.tx->vout[input.prevout.n], wtx.m_confirm.block_height, wtx.IsCoinBase());
}
std::map<int, std::string> input_errors;
- return SignTransaction(tx, coins, SIGHASH_ALL, input_errors);
+ return SignTransaction(tx, coins, SIGHASH_DEFAULT, input_errors);
}
bool CWallet::SignTransaction(CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int, std::string>& input_errors) const