Changeset View
Changeset View
Standalone View
Standalone View
src/bench/mempool_eviction.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | static void MempoolEviction(benchmark::State &state) { | ||||
tx7.vin[1].prevout = COutPoint(tx6.GetId(), 0); | tx7.vin[1].prevout = COutPoint(tx6.GetId(), 0); | ||||
tx7.vin[1].scriptSig = CScript() << OP_6; | tx7.vin[1].scriptSig = CScript() << OP_6; | ||||
tx7.vout.resize(2); | tx7.vout.resize(2); | ||||
tx7.vout[0].scriptPubKey = CScript() << OP_7 << OP_EQUAL; | tx7.vout[0].scriptPubKey = CScript() << OP_7 << OP_EQUAL; | ||||
tx7.vout[0].nValue = 10 * COIN; | tx7.vout[0].nValue = 10 * COIN; | ||||
tx7.vout[1].scriptPubKey = CScript() << OP_7 << OP_EQUAL; | tx7.vout[1].scriptPubKey = CScript() << OP_7 << OP_EQUAL; | ||||
tx7.vout[1].nValue = 10 * COIN; | tx7.vout[1].nValue = 10 * COIN; | ||||
CTxMemPool pool(CFeeRate(Amount(1000))); | CTxMemPool pool; | ||||
CTransaction t1(tx1); | CTransaction t1(tx1); | ||||
CTransaction t2(tx2); | CTransaction t2(tx2); | ||||
CTransaction t3(tx3); | CTransaction t3(tx3); | ||||
CTransaction t4(tx4); | CTransaction t4(tx4); | ||||
CTransaction t5(tx5); | CTransaction t5(tx5); | ||||
CTransaction t6(tx6); | CTransaction t6(tx6); | ||||
CTransaction t7(tx1); | CTransaction t7(tx1); | ||||
Show All 15 Lines |