Bitcoin Core  0.20.99
P2P Digital Currency
Classes | Functions | Variables
mempool_stress.cpp File Reference
#include <bench/bench.h>
#include <policy/policy.h>
#include <test/util/setup_common.h>
#include <txmempool.h>
#include <vector>
Include dependency graph for mempool_stress.cpp:

Go to the source code of this file.

Classes

struct  Available
 

Functions

static void AddTx (const CTransactionRef &tx, CTxMemPool &pool) EXCLUSIVE_LOCKS_REQUIRED(cs_main
 
pool addUnchecked (CTxMemPoolEntry(tx, 1000, nTime, nHeight, spendsCoinbase, sigOpCost, lp))
 
static void ComplexMemPool (benchmark::State &state)
 
 BENCHMARK (ComplexMemPool, 1)
 

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,
CTxMemPool pool 
)
static
Here is the caller graph for this function:

◆ addUnchecked()

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

◆ BENCHMARK()

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

◆ ComplexMemPool()

static void ComplexMemPool ( benchmark::State state)
static

Definition at line 29 of file mempool_stress.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_stress.cpp.

◆ lp

Definition at line 18 of file mempool_stress.cpp.

◆ nHeight

unsigned int nHeight = 1

Definition at line 15 of file mempool_stress.cpp.

◆ sigOpCost

unsigned int sigOpCost = 4

Definition at line 17 of file mempool_stress.cpp.

◆ spendsCoinbase

bool spendsCoinbase = false

Definition at line 16 of file mempool_stress.cpp.