Bitcoin
Functions | Variables
mempool_eviction.cpp File Reference
#include <bench/bench.h>
#include <policy/policy.h>
#include <txmempool.h>
#include <list>
#include <vector>

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

◆ addUnchecked()

pool addUnchecked ( CTxMemPoolEntry(tx, nFee, nTime, nHeight, spendsCoinbase, sigOpCost, lp )

◆ BENCHMARK()

BENCHMARK ( MempoolEviction  ,
41000   
)

◆ MempoolEviction()

static void MempoolEviction ( benchmark::State state)
static

Variable Documentation

◆ cs

void pool cs
Initial value:
{
int64_t nTime = 0
signed long long int64_t
Definition: stdint.h:18

◆ lp

◆ nHeight

unsigned int nHeight = 1

◆ sigOpCost

unsigned int sigOpCost = 4

◆ spendsCoinbase

bool spendsCoinbase = false