@@ -41,7 +41,7 @@ static void MempoolEviction(benchmark::State& state)
41
41
CMutableTransaction tx2 = CMutableTransaction ();
42
42
tx2.vin .resize (1 );
43
43
tx2.vin [0 ].scriptSig = CScript () << OP_2;
44
- tx1 .witness .vtxinwit .resize (1 );
44
+ tx2 .witness .vtxinwit .resize (1 );
45
45
tx2.witness .vtxinwit [0 ].scriptWitness .stack .push_back ({2 });
46
46
tx2.vout .resize (1 );
47
47
tx2.vout [0 ].scriptPubKey = CScript () << OP_2 << OP_EQUAL;
@@ -51,7 +51,7 @@ static void MempoolEviction(benchmark::State& state)
51
51
tx3.vin .resize (1 );
52
52
tx3.vin [0 ].prevout = COutPoint (tx2.GetHash (), 0 );
53
53
tx3.vin [0 ].scriptSig = CScript () << OP_2;
54
- tx1 .witness .vtxinwit .resize (1 );
54
+ tx3 .witness .vtxinwit .resize (1 );
55
55
tx3.witness .vtxinwit [0 ].scriptWitness .stack .push_back ({3 });
56
56
tx3.vout .resize (1 );
57
57
tx3.vout [0 ].scriptPubKey = CScript () << OP_3 << OP_EQUAL;
@@ -61,11 +61,11 @@ static void MempoolEviction(benchmark::State& state)
61
61
tx4.vin .resize (2 );
62
62
tx4.vin [0 ].prevout .SetNull ();
63
63
tx4.vin [0 ].scriptSig = CScript () << OP_4;
64
- tx1 .witness .vtxinwit .resize (1 );
64
+ tx4 .witness .vtxinwit .resize (1 );
65
65
tx4.witness .vtxinwit [0 ].scriptWitness .stack .push_back ({4 });
66
66
tx4.vin [1 ].prevout .SetNull ();
67
67
tx4.vin [1 ].scriptSig = CScript () << OP_4;
68
- tx1 .witness .vtxinwit .resize (2 );
68
+ tx4 .witness .vtxinwit .resize (2 );
69
69
tx4.witness .vtxinwit [1 ].scriptWitness .stack .push_back ({4 });
70
70
tx4.vout .resize (2 );
71
71
tx4.vout [0 ].scriptPubKey = CScript () << OP_4 << OP_EQUAL;
@@ -77,11 +77,11 @@ static void MempoolEviction(benchmark::State& state)
77
77
tx5.vin .resize (2 );
78
78
tx5.vin [0 ].prevout = COutPoint (tx4.GetHash (), 0 );
79
79
tx5.vin [0 ].scriptSig = CScript () << OP_4;
80
- tx1 .witness .vtxinwit .resize (1 );
80
+ tx5 .witness .vtxinwit .resize (1 );
81
81
tx5.witness .vtxinwit [0 ].scriptWitness .stack .push_back ({4 });
82
82
tx5.vin [1 ].prevout .SetNull ();
83
83
tx5.vin [1 ].scriptSig = CScript () << OP_5;
84
- tx1 .witness .vtxinwit .resize (2 );
84
+ tx5 .witness .vtxinwit .resize (2 );
85
85
tx5.witness .vtxinwit [1 ].scriptWitness .stack .push_back ({5 });
86
86
tx5.vout .resize (2 );
87
87
tx5.vout [0 ].scriptPubKey = CScript () << OP_5 << OP_EQUAL;
@@ -93,11 +93,11 @@ static void MempoolEviction(benchmark::State& state)
93
93
tx6.vin .resize (2 );
94
94
tx6.vin [0 ].prevout = COutPoint (tx4.GetHash (), 1 );
95
95
tx6.vin [0 ].scriptSig = CScript () << OP_4;
96
- tx1 .witness .vtxinwit .resize (1 );
96
+ tx6 .witness .vtxinwit .resize (1 );
97
97
tx6.witness .vtxinwit [0 ].scriptWitness .stack .push_back ({4 });
98
98
tx6.vin [1 ].prevout .SetNull ();
99
99
tx6.vin [1 ].scriptSig = CScript () << OP_6;
100
- tx1 .witness .vtxinwit .resize (2 );
100
+ tx6 .witness .vtxinwit .resize (2 );
101
101
tx6.witness .vtxinwit [1 ].scriptWitness .stack .push_back ({6 });
102
102
tx6.vout .resize (2 );
103
103
tx6.vout [0 ].scriptPubKey = CScript () << OP_6 << OP_EQUAL;
@@ -109,11 +109,11 @@ static void MempoolEviction(benchmark::State& state)
109
109
tx7.vin .resize (2 );
110
110
tx7.vin [0 ].prevout = COutPoint (tx5.GetHash (), 0 );
111
111
tx7.vin [0 ].scriptSig = CScript () << OP_5;
112
- tx1 .witness .vtxinwit .resize (1 );
112
+ tx7 .witness .vtxinwit .resize (1 );
113
113
tx7.witness .vtxinwit [0 ].scriptWitness .stack .push_back ({5 });
114
114
tx7.vin [1 ].prevout = COutPoint (tx6.GetHash (), 0 );
115
115
tx7.vin [1 ].scriptSig = CScript () << OP_6;
116
- tx1 .witness .vtxinwit .resize (2 );
116
+ tx7 .witness .vtxinwit .resize (2 );
117
117
tx7.witness .vtxinwit [1 ].scriptWitness .stack .push_back ({6 });
118
118
tx7.vout .resize (2 );
119
119
tx7.vout [0 ].scriptPubKey = CScript () << OP_7 << OP_EQUAL;
0 commit comments