aboutsummaryrefslogtreecommitdiff
path: root/src/script/interpreter.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2021-02-27 20:24:31 -0800
committerPieter Wuille <pieter@wuille.net>2021-06-12 12:25:28 -0700
commitce9353164bdb6215a62b2b6dcb2121d331796f60 (patch)
tree69364a7de2b250b2841500ff8b68095f36926ee7 /src/script/interpreter.h
parente841fb503d7a662bde01ec2e4794faa989265950 (diff)
downloadbitcoin-ce9353164bdb6215a62b2b6dcb2121d331796f60.tar.xz
Permit full precomputation in PrecomputedTransactionData
At verification time, the to be precomputed data can be inferred from the transaction itself. For signing, the necessary witnesses don't exist yet, so just permit precomputing everything in that case.
Diffstat (limited to 'src/script/interpreter.h')
-rw-r--r--src/script/interpreter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/interpreter.h b/src/script/interpreter.h
index fa4ee83e04..399d775181 100644
--- a/src/script/interpreter.h
+++ b/src/script/interpreter.h
@@ -168,7 +168,7 @@ struct PrecomputedTransactionData
PrecomputedTransactionData() = default;
template <class T>
- void Init(const T& tx, std::vector<CTxOut>&& spent_outputs);
+ void Init(const T& tx, std::vector<CTxOut>&& spent_outputs, bool force = false);
template <class T>
explicit PrecomputedTransactionData(const T& tx);