File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ bool Instance::setup_environment(unsigned int flags) {
188
188
if (tx) {
189
189
if (txin && txin_index > -1 ) {
190
190
std::vector<CTxOut> spent_outputs;
191
- spent_outputs.emplace_back (txin->vout [txin_index ]);
191
+ spent_outputs.emplace_back (txin->vout [txin_vout_index ]);
192
192
if (tx->vin .size () == 1 ) {
193
193
txdata.Init (*tx.get (), std::move (spent_outputs), has_preamble);
194
194
}
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ class Instance {
22
22
ECCVerifyHandle evh;
23
23
CTransactionRef tx;
24
24
CTransactionRef txin;
25
+ /*
26
+ * INPUT TX VOUT TX VIN
27
+ * [0] [0]* <-- txin_index==0
28
+ * [1]* [1]
29
+ * `-- txin_vout_index==1
30
+ */
25
31
int64_t txin_index; // /< index of the input txid in tx's inputs
26
32
int64_t txin_vout_index; // /< index inside txin of the output to tx
27
33
std::vector<CAmount> amounts;
You can’t perform that action at this time.
0 commit comments