diff options
author | Pieter Wuille <pieter@wuille.net> | 2021-02-27 20:24:31 -0800 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-06-12 12:25:28 -0700 |
commit | ce9353164bdb6215a62b2b6dcb2121d331796f60 (patch) | |
tree | 69364a7de2b250b2841500ff8b68095f36926ee7 /src/script/interpreter.h | |
parent | e841fb503d7a662bde01ec2e4794faa989265950 (diff) |
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.h | 2 |
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); |