Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
mempool_eviction.cpp File Reference
#include <bench/bench.h>
#include <consensus/amount.h>
#include <kernel/cs_main.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <sync.h>
#include <test/util/setup_common.h>
#include <test/util/txmempool.h>
#include <txmempool.h>
#include <util/check.h>
#include <cstdint>
#include <memory>
#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
 TryAddToMempool (pool, CTxMemPoolEntry(tx, nFee, nTime, nHeight, sequence, spendsCoinbase, sigOpCost, lp))
static void MempoolEviction (benchmark::Bench &bench)
 BENCHMARK (MempoolEviction)

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()

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

◆ BENCHMARK()

BENCHMARK ( MempoolEviction )
Here is the call graph for this function:

◆ MempoolEviction()

void MempoolEviction ( benchmark::Bench & bench)
static

Definition at line 38 of file mempool_eviction.cpp.

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

◆ TryAddToMempool()

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

Variable Documentation

◆ cs

void pool cs
Initial value:
{
int64_t nTime = 0

Definition at line 22 of file mempool_eviction.cpp.

◆ lp

Definition at line 29 of file mempool_eviction.cpp.

◆ nHeight

unsigned int nHeight = 1

Definition at line 25 of file mempool_eviction.cpp.

◆ sequence

uint64_t sequence = 0

Definition at line 26 of file mempool_eviction.cpp.

◆ sigOpCost

unsigned int sigOpCost = 4

Definition at line 28 of file mempool_eviction.cpp.

◆ spendsCoinbase

bool spendsCoinbase = false

Definition at line 27 of file mempool_eviction.cpp.