aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorJohnson Lau <jl2012@xbt.hk>2020-09-11 14:33:10 -0700
committerPieter Wuille <pieter@wuille.net>2020-10-12 17:06:38 -0700
commit5de246ca8159dcffaa4c136a60c8bfed2028e2ee (patch)
tree6360222a98a2f75e01882ad8c01f771b4f4c0b8b /src/validation.cpp
parent9eb590894f15ff40806039bfd32972fbc260e30d (diff)
Implement Taproot signature hashing (BIP 341)
This implements the new sighashing scheme from BIP341, with all relevant whole-transaction values precomputed once and cached. Includes changes to PrecomputedTransactionData by Pieter Wuille.
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 2090d9477f..65958967ee 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -1538,7 +1538,7 @@ bool CheckInputScripts(const CTransaction& tx, TxValidationState &state, const C
return true;
}
- if (!txdata.m_ready) {
+ if (!txdata.m_spent_outputs_ready) {
std::vector<CTxOut> spent_outputs;
spent_outputs.reserve(tx.vin.size());