Bitcoin Core  0.18.99
P2P Digital Currency
Functions | Variables
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 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::State &state)
 
 BENCHMARK (MempoolEviction, 41000)
 

Variables

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

Function Documentation

◆ AddTx()

static void AddTx ( const CTransactionRef tx,
const CAmount nFee,
CTxMemPool pool 
)
static
Here is the caller graph for this function:

◆ addUnchecked()

pool addUnchecked ( CTxMemPoolEntry(tx, nFee, nTime, nHeight, spendsCoinbase, sigOpCost, lp )
Here is the caller graph for this function:

◆ BENCHMARK()

BENCHMARK ( MempoolEviction  ,
41000   
)
Here is the caller graph for this function:

◆ MempoolEviction()

static void MempoolEviction ( benchmark::State state)
static

Definition at line 27 of file mempool_eviction.cpp.

Here is the call graph for this function:

Variable Documentation

◆ cs

void pool cs
Initial value:
{
int64_t nTime = 0

Definition at line 13 of file mempool_eviction.cpp.

◆ lp

Definition at line 18 of file mempool_eviction.cpp.

◆ nHeight

unsigned int nHeight = 1

Definition at line 15 of file mempool_eviction.cpp.

◆ sigOpCost

unsigned int sigOpCost = 4

Definition at line 17 of file mempool_eviction.cpp.

◆ spendsCoinbase

bool spendsCoinbase = false

Definition at line 16 of file mempool_eviction.cpp.