@@ -29,13 +29,15 @@ static void MempoolEviction(benchmark::State& state)
2929 CMutableTransaction tx1 = CMutableTransaction ();
3030 tx1.vin .resize (1 );
3131 tx1.vin [0 ].scriptSig = CScript () << OP_1;
32+ tx1.vin [0 ].scriptWitness .stack .push_back ({1 });
3233 tx1.vout .resize (1 );
3334 tx1.vout [0 ].scriptPubKey = CScript () << OP_1 << OP_EQUAL;
3435 tx1.vout [0 ].nValue = 10 * COIN;
3536
3637 CMutableTransaction tx2 = CMutableTransaction ();
3738 tx2.vin .resize (1 );
3839 tx2.vin [0 ].scriptSig = CScript () << OP_2;
40+ tx2.vin [0 ].scriptWitness .stack .push_back ({2 });
3941 tx2.vout .resize (1 );
4042 tx2.vout [0 ].scriptPubKey = CScript () << OP_2 << OP_EQUAL;
4143 tx2.vout [0 ].nValue = 10 * COIN;
@@ -44,6 +46,7 @@ static void MempoolEviction(benchmark::State& state)
4446 tx3.vin .resize (1 );
4547 tx3.vin [0 ].prevout = COutPoint (tx2.GetHash (), 0 );
4648 tx3.vin [0 ].scriptSig = CScript () << OP_2;
49+ tx3.vin [0 ].scriptWitness .stack .push_back ({3 });
4750 tx3.vout .resize (1 );
4851 tx3.vout [0 ].scriptPubKey = CScript () << OP_3 << OP_EQUAL;
4952 tx3.vout [0 ].nValue = 10 * COIN;
@@ -52,8 +55,10 @@ static void MempoolEviction(benchmark::State& state)
5255 tx4.vin .resize (2 );
5356 tx4.vin [0 ].prevout .SetNull ();
5457 tx4.vin [0 ].scriptSig = CScript () << OP_4;
58+ tx4.vin [0 ].scriptWitness .stack .push_back ({4 });
5559 tx4.vin [1 ].prevout .SetNull ();
5660 tx4.vin [1 ].scriptSig = CScript () << OP_4;
61+ tx4.vin [1 ].scriptWitness .stack .push_back ({4 });
5762 tx4.vout .resize (2 );
5863 tx4.vout [0 ].scriptPubKey = CScript () << OP_4 << OP_EQUAL;
5964 tx4.vout [0 ].nValue = 10 * COIN;
@@ -64,8 +69,10 @@ static void MempoolEviction(benchmark::State& state)
6469 tx5.vin .resize (2 );
6570 tx5.vin [0 ].prevout = COutPoint (tx4.GetHash (), 0 );
6671 tx5.vin [0 ].scriptSig = CScript () << OP_4;
72+ tx5.vin [0 ].scriptWitness .stack .push_back ({4 });
6773 tx5.vin [1 ].prevout .SetNull ();
6874 tx5.vin [1 ].scriptSig = CScript () << OP_5;
75+ tx5.vin [1 ].scriptWitness .stack .push_back ({5 });
6976 tx5.vout .resize (2 );
7077 tx5.vout [0 ].scriptPubKey = CScript () << OP_5 << OP_EQUAL;
7178 tx5.vout [0 ].nValue = 10 * COIN;
@@ -76,8 +83,10 @@ static void MempoolEviction(benchmark::State& state)
7683 tx6.vin .resize (2 );
7784 tx6.vin [0 ].prevout = COutPoint (tx4.GetHash (), 1 );
7885 tx6.vin [0 ].scriptSig = CScript () << OP_4;
86+ tx6.vin [0 ].scriptWitness .stack .push_back ({4 });
7987 tx6.vin [1 ].prevout .SetNull ();
8088 tx6.vin [1 ].scriptSig = CScript () << OP_6;
89+ tx6.vin [1 ].scriptWitness .stack .push_back ({6 });
8190 tx6.vout .resize (2 );
8291 tx6.vout [0 ].scriptPubKey = CScript () << OP_6 << OP_EQUAL;
8392 tx6.vout [0 ].nValue = 10 * COIN;
@@ -88,8 +97,10 @@ static void MempoolEviction(benchmark::State& state)
8897 tx7.vin .resize (2 );
8998 tx7.vin [0 ].prevout = COutPoint (tx5.GetHash (), 0 );
9099 tx7.vin [0 ].scriptSig = CScript () << OP_5;
100+ tx7.vin [0 ].scriptWitness .stack .push_back ({5 });
91101 tx7.vin [1 ].prevout = COutPoint (tx6.GetHash (), 0 );
92102 tx7.vin [1 ].scriptSig = CScript () << OP_6;
103+ tx7.vin [1 ].scriptWitness .stack .push_back ({6 });
93104 tx7.vout .resize (2 );
94105 tx7.vout [0 ].scriptPubKey = CScript () << OP_7 << OP_EQUAL;
95106 tx7.vout [0 ].nValue = 10 * COIN;
0 commit comments