Bitcoin ABC 0.30.5
P2P Digital Currency
Classes | Functions | Variables
mempool_stress.cpp File Reference
#include <bench/bench.h>
#include <kernel/mempool_entry.h>
#include <policy/policy.h>
#include <random.h>
#include <test/util/setup_common.h>
#include <txmempool.h>
#include <validation.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 (CTxMemPoolEntryRef::make(tx, 1000 *SATOSHI, nTime, nHeight, sigChecks, lp))
 
static std::vector< CTransactionRefCreateOrderedCoins (FastRandomContext &det_rand, int childTxs, int min_ancestors)
 
static void ComplexMemPool (benchmark::Bench &bench)
 
static void MempoolCheck (benchmark::Bench &bench)
 
 BENCHMARK (ComplexMemPool)
 
 BENCHMARK (MempoolCheck)
 

Variables

static void pool cs
 
unsigned int nHeight = 1
 
unsigned int sigChecks = 1
 
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 ( CTxMemPoolEntryRef::make(tx, 1000 *SATOSHI, nTime, nHeight, sigChecks, lp )

◆ BENCHMARK() [1/2]

BENCHMARK ( ComplexMemPool  )

◆ BENCHMARK() [2/2]

BENCHMARK ( MempoolCheck  )

◆ ComplexMemPool()

static void ComplexMemPool ( benchmark::Bench bench)
static

Definition at line 88 of file mempool_stress.cpp.

Here is the call graph for this function:

◆ CreateOrderedCoins()

static std::vector< CTransactionRef > CreateOrderedCoins ( FastRandomContext det_rand,
int  childTxs,
int  min_ancestors 
)
static

Definition at line 34 of file mempool_stress.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MempoolCheck()

static void MempoolCheck ( benchmark::Bench bench)
static

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

◆ lp

Definition at line 20 of file mempool_stress.cpp.

◆ nHeight

unsigned int nHeight = 1

Definition at line 18 of file mempool_stress.cpp.

◆ sigChecks

unsigned int sigChecks = 1

Definition at line 19 of file mempool_stress.cpp.