![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#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>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 |
|
static |
| BENCHMARK | ( | MempoolEviction | ) |
|
static |
Definition at line 38 of file mempool_eviction.cpp.
| TryAddToMempool | ( | pool | , |
| CTxMemPoolEntry(tx, nFee, nTime, nHeight, sequence, spendsCoinbase, sigOpCost, lp) | ) |
| void pool cs |
Definition at line 22 of file mempool_eviction.cpp.
| LockPoints lp |
Definition at line 29 of file mempool_eviction.cpp.
| unsigned int nHeight = 1 |
Definition at line 25 of file mempool_eviction.cpp.
| uint64_t sequence = 0 |
Definition at line 26 of file mempool_eviction.cpp.
| unsigned int sigOpCost = 4 |
Definition at line 28 of file mempool_eviction.cpp.
| bool spendsCoinbase = false |
Definition at line 27 of file mempool_eviction.cpp.