Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
mempool_eviction.cpp File Reference
#include <bench/bench.h>
#include <policy/policy.h>
#include <txmempool.h>
#include <list>
#include <vector>
Include dependency graph for mempool_eviction.cpp:
Go to the source code of this file.
Functions | |
static void | AddTx (const CTransaction &tx, const CAmount &nFee, CTxMemPool &pool) |
static void | MempoolEviction (benchmark::State &state) |
BENCHMARK (MempoolEviction) | |
Function Documentation
◆ AddTx()
|
static |
Definition at line 12 of file mempool_eviction.cpp.
References CTxMemPool::addUnchecked(), CTransaction::GetHash(), and MakeTransactionRef().
Referenced by MempoolEviction().
◆ BENCHMARK()
BENCHMARK | ( | MempoolEviction | ) |
◆ MempoolEviction()
|
static |
Definition at line 27 of file mempool_eviction.cpp.
References AddTx(), COIN, CTxMemPool::DynamicMemoryUsage(), CMutableTransaction::GetHash(), GetSerializeSize(), benchmark::State::KeepRunning(), OP_1, OP_2, OP_3, OP_4, OP_5, OP_6, OP_7, OP_EQUAL, PROTOCOL_VERSION, SER_NETWORK, CTxMemPool::TrimToSize(), CMutableTransaction::vin, and CMutableTransaction::vout.