|
|
|
@ -29,6 +29,7 @@ static void MempoolEviction(benchmark::State& state)
|
|
|
|
|
CMutableTransaction tx1 = CMutableTransaction();
|
|
|
|
|
tx1.vin.resize(1);
|
|
|
|
|
tx1.vin[0].scriptSig = CScript() << OP_1;
|
|
|
|
|
tx1.vin[0].scriptWitness.stack.push_back({1});
|
|
|
|
|
tx1.vout.resize(1);
|
|
|
|
|
tx1.vout[0].scriptPubKey = CScript() << OP_1 << OP_EQUAL;
|
|
|
|
|
tx1.vout[0].nValue = 10 * COIN;
|
|
|
|
@ -36,6 +37,7 @@ static void MempoolEviction(benchmark::State& state)
|
|
|
|
|
CMutableTransaction tx2 = CMutableTransaction();
|
|
|
|
|
tx2.vin.resize(1);
|
|
|
|
|
tx2.vin[0].scriptSig = CScript() << OP_2;
|
|
|
|
|
tx2.vin[0].scriptWitness.stack.push_back({2});
|
|
|
|
|
tx2.vout.resize(1);
|
|
|
|
|
tx2.vout[0].scriptPubKey = CScript() << OP_2 << OP_EQUAL;
|
|
|
|
|
tx2.vout[0].nValue = 10 * COIN;
|
|
|
|
@ -44,6 +46,7 @@ static void MempoolEviction(benchmark::State& state)
|
|
|
|
|
tx3.vin.resize(1);
|
|
|
|
|
tx3.vin[0].prevout = COutPoint(tx2.GetHash(), 0);
|
|
|
|
|
tx3.vin[0].scriptSig = CScript() << OP_2;
|
|
|
|
|
tx3.vin[0].scriptWitness.stack.push_back({3});
|
|
|
|
|
tx3.vout.resize(1);
|
|
|
|
|
tx3.vout[0].scriptPubKey = CScript() << OP_3 << OP_EQUAL;
|
|
|
|
|
tx3.vout[0].nValue = 10 * COIN;
|
|
|
|
@ -52,8 +55,10 @@ static void MempoolEviction(benchmark::State& state)
|
|
|
|
|
tx4.vin.resize(2);
|
|
|
|
|
tx4.vin[0].prevout.SetNull();
|
|
|
|
|
tx4.vin[0].scriptSig = CScript() << OP_4;
|
|
|
|
|
tx4.vin[0].scriptWitness.stack.push_back({4});
|
|
|
|
|
tx4.vin[1].prevout.SetNull();
|
|
|
|
|
tx4.vin[1].scriptSig = CScript() << OP_4;
|
|
|
|
|
tx4.vin[1].scriptWitness.stack.push_back({4});
|
|
|
|
|
tx4.vout.resize(2);
|
|
|
|
|
tx4.vout[0].scriptPubKey = CScript() << OP_4 << OP_EQUAL;
|
|
|
|
|
tx4.vout[0].nValue = 10 * COIN;
|
|
|
|
@ -64,8 +69,10 @@ static void MempoolEviction(benchmark::State& state)
|
|
|
|
|
tx5.vin.resize(2);
|
|
|
|
|
tx5.vin[0].prevout = COutPoint(tx4.GetHash(), 0);
|
|
|
|
|
tx5.vin[0].scriptSig = CScript() << OP_4;
|
|
|
|
|
tx5.vin[0].scriptWitness.stack.push_back({4});
|
|
|
|
|
tx5.vin[1].prevout.SetNull();
|
|
|
|
|
tx5.vin[1].scriptSig = CScript() << OP_5;
|
|
|
|
|
tx5.vin[1].scriptWitness.stack.push_back({5});
|
|
|
|
|
tx5.vout.resize(2);
|
|
|
|
|
tx5.vout[0].scriptPubKey = CScript() << OP_5 << OP_EQUAL;
|
|
|
|
|
tx5.vout[0].nValue = 10 * COIN;
|
|
|
|
@ -76,8 +83,10 @@ static void MempoolEviction(benchmark::State& state)
|
|
|
|
|
tx6.vin.resize(2);
|
|
|
|
|
tx6.vin[0].prevout = COutPoint(tx4.GetHash(), 1);
|
|
|
|
|
tx6.vin[0].scriptSig = CScript() << OP_4;
|
|
|
|
|
tx6.vin[0].scriptWitness.stack.push_back({4});
|
|
|
|
|
tx6.vin[1].prevout.SetNull();
|
|
|
|
|
tx6.vin[1].scriptSig = CScript() << OP_6;
|
|
|
|
|
tx6.vin[1].scriptWitness.stack.push_back({6});
|
|
|
|
|
tx6.vout.resize(2);
|
|
|
|
|
tx6.vout[0].scriptPubKey = CScript() << OP_6 << OP_EQUAL;
|
|
|
|
|
tx6.vout[0].nValue = 10 * COIN;
|
|
|
|
@ -88,8 +97,10 @@ static void MempoolEviction(benchmark::State& state)
|
|
|
|
|
tx7.vin.resize(2);
|
|
|
|
|
tx7.vin[0].prevout = COutPoint(tx5.GetHash(), 0);
|
|
|
|
|
tx7.vin[0].scriptSig = CScript() << OP_5;
|
|
|
|
|
tx7.vin[0].scriptWitness.stack.push_back({5});
|
|
|
|
|
tx7.vin[1].prevout = COutPoint(tx6.GetHash(), 0);
|
|
|
|
|
tx7.vin[1].scriptSig = CScript() << OP_6;
|
|
|
|
|
tx7.vin[1].scriptWitness.stack.push_back({6});
|
|
|
|
|
tx7.vout.resize(2);
|
|
|
|
|
tx7.vout[0].scriptPubKey = CScript() << OP_7 << OP_EQUAL;
|
|
|
|
|
tx7.vout[0].nValue = 10 * COIN;
|
|
|
|
|