diff options
| author | Johnson Lau <[email protected]> | 2020-09-11 14:33:10 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2020-10-12 17:06:38 -0700 |
| commit | 5de246ca8159dcffaa4c136a60c8bfed2028e2ee (patch) | |
| tree | 6360222a98a2f75e01882ad8c01f771b4f4c0b8b /src/validation.cpp | |
| parent | Add TaggedHash function (BIP 340) (diff) | |
| download | discoin-5de246ca8159dcffaa4c136a60c8bfed2028e2ee.tar.xz discoin-5de246ca8159dcffaa4c136a60c8bfed2028e2ee.zip | |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 2090d9477..65958967e 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()); |