Bitcoin Core  27.99.0
P2P Digital Currency
Functions | Variables
mempool_eviction.cpp File Reference
#include <bench/bench.h>
#include <kernel/mempool_entry.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, sequence, spendsCoinbase, sigOpCost, lp))
 
static void MempoolEviction (benchmark::Bench &bench)
 
 BENCHMARK (MempoolEviction, benchmark::PriorityLevel::HIGH)
 

Variables

static void pool cs
 
unsigned int nHeight = 1
 
uint64_t sequence = 0
 
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, sequence, spendsCoinbase, sigOpCost, lp )

◆ BENCHMARK()

◆ MempoolEviction()

static void MempoolEviction ( benchmark::Bench bench)
static

Definition at line 28 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 12 of file mempool_eviction.cpp.

◆ lp

Definition at line 19 of file mempool_eviction.cpp.

◆ nHeight

unsigned int nHeight = 1

Definition at line 15 of file mempool_eviction.cpp.

◆ sequence

uint64_t sequence = 0

Definition at line 16 of file mempool_eviction.cpp.

◆ sigOpCost

unsigned int sigOpCost = 4

Definition at line 18 of file mempool_eviction.cpp.

◆ spendsCoinbase

bool spendsCoinbase = false

Definition at line 17 of file mempool_eviction.cpp.