aboutsummaryrefslogtreecommitdiff
path: root/src/script/interpreter.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2021-06-17 16:54:56 -0700
committerPieter Wuille <pieter@wuille.net>2021-08-20 14:29:23 -0400
commitaddb9b5a71ff96bdb1a4c15bc9345de0d7f2c98c (patch)
tree7d3753ee845ed37f88755bec6c0ce8a8784b00c9 /src/script/interpreter.h
parent4fc15d15667d9d9c4fb5515ce73c05b4596298ec (diff)
Improve comments in taproot signing logic
Diffstat (limited to 'src/script/interpreter.h')
-rw-r--r--src/script/interpreter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/script/interpreter.h b/src/script/interpreter.h
index 93136a0b79..ab49e84577 100644
--- a/src/script/interpreter.h
+++ b/src/script/interpreter.h
@@ -170,6 +170,13 @@ struct PrecomputedTransactionData
PrecomputedTransactionData() = default;
+ /** Initialize this PrecomputedTransactionData with transaction data.
+ *
+ * @param[in] tx The transaction for which data is being precomputed.
+ * @param[in] spent_outputs The CTxOuts being spent, one for each tx.vin, in order.
+ * @param[in] force Whether to precompute data for all optional features,
+ * regardless of what is in the inputs (used at signing
+ * time, when the inputs aren't filled in yet). */
template <class T>
void Init(const T& tx, std::vector<CTxOut>&& spent_outputs, bool force = false);