Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
Functions | Variables
mempool_eviction.cpp File Reference
#include <bench/bench.h>
#include <policy/policy.h>
#include <test/util/setup_common.h>
#include <txmempool.h>
Include dependency graph for mempool_eviction.cpp:

Go to the source code of this file.

Functions

static void AddTx (const CTransactionRef &tx, const CAmount &nFee, CTxMemPool &pool) EXCLUSIVE_LOCKS_REQUIRED(cs_main
 
pool addUnchecked (CTxMemPoolEntry(tx, nFee, nTime, nHeight, spendsCoinbase, sigOpCost, lp))
 
static void MempoolEviction (benchmark::Bench &bench)
 
 BENCHMARK (MempoolEviction)
 

Variables

static void pool cs
 
unsigned int nHeight = 1
 
bool spendsCoinbase = false
 
unsigned int sigOpCost = 4
 
LockPoints lp
 

Function Documentation

static void AddTx ( const CTransactionRef tx,
const CAmount nFee,
CTxMemPool pool 
)
static

Here is the caller graph for this function:

pool addUnchecked ( CTxMemPoolEntry(tx, nFee, nTime, nHeight, spendsCoinbase, sigOpCost, lp )
BENCHMARK ( MempoolEviction  )
static void MempoolEviction ( benchmark::Bench bench)
static

Definition at line 26 of file mempool_eviction.cpp.

Here is the call graph for this function:

Variable Documentation

void pool cs
Initial value:
{
int64_t nTime = 0

Definition at line 12 of file mempool_eviction.cpp.

Definition at line 17 of file mempool_eviction.cpp.

unsigned int nHeight = 1

Definition at line 14 of file mempool_eviction.cpp.

unsigned int sigOpCost = 4

Definition at line 16 of file mempool_eviction.cpp.

bool spendsCoinbase = false

Definition at line 15 of file mempool_eviction.cpp.