![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <bench/bench.h>#include <consensus/amount.h>#include <policy/policy.h>#include <primitives/transaction.h>#include <random.h>#include <script/script.h>#include <sync.h>#include <test/util/setup_common.h>#include <test/util/txmempool.h>#include <txmempool.h>#include <validation.h>#include <cstddef>#include <cstdint>#include <memory>#include <vector>Go to the source code of this file.
Classes | |
| struct | Available |
Functions | |
| static void | AddTx (const CTransactionRef &tx, CTxMemPool &pool, FastRandomContext &det_rand) EXCLUSIVE_LOCKS_REQUIRED(cs_main |
| TryAddToMempool (pool, CTxMemPoolEntry(tx, det_rand.randrange(10000)+1000, nTime, nHeight, sequence, spendsCoinbase, sigOpCost, lp)) | |
| static std::vector< CTransactionRef > | CreateCoinCluster (FastRandomContext &det_rand, int childTxs, int min_ancestors) |
| static void | MemPoolAddTransactions (benchmark::Bench &bench) |
| static void | ComplexMemPool (benchmark::Bench &bench) |
| static void | MemPoolAncestorsDescendants (benchmark::Bench &bench) |
| static void | MempoolCheck (benchmark::Bench &bench) |
| BENCHMARK (MemPoolAncestorsDescendants) | |
| BENCHMARK (MemPoolAddTransactions) | |
| BENCHMARK (ComplexMemPool) | |
| BENCHMARK (MempoolCheck) | |
Variables | |
| static void pool | cs |
| unsigned int | nHeight = 1 |
| uint64_t | sequence = 0 |
| bool | spendsCoinbase = false |
| unsigned int | sigOpCost = 4 |
| LockPoints | lp |
|
static |
| BENCHMARK | ( | ComplexMemPool | ) |
| BENCHMARK | ( | MemPoolAddTransactions | ) |
| BENCHMARK | ( | MemPoolAncestorsDescendants | ) |
| BENCHMARK | ( | MempoolCheck | ) |
|
static |
Definition at line 123 of file mempool_stress.cpp.
|
static |
Definition at line 43 of file mempool_stress.cpp.
|
static |
Definition at line 96 of file mempool_stress.cpp.
|
static |
Definition at line 167 of file mempool_stress.cpp.
|
static |
Definition at line 196 of file mempool_stress.cpp.
| TryAddToMempool | ( | pool | , |
| CTxMemPoolEntry(tx, det_rand.randrange(10000)+1000, nTime, nHeight, sequence, spendsCoinbase, sigOpCost, lp) | ) |
| void pool cs |
Definition at line 24 of file mempool_stress.cpp.
| LockPoints lp |
Definition at line 31 of file mempool_stress.cpp.
| unsigned int nHeight = 1 |
Definition at line 27 of file mempool_stress.cpp.
| uint64_t sequence = 0 |
Definition at line 28 of file mempool_stress.cpp.
| unsigned int sigOpCost = 4 |
Definition at line 30 of file mempool_stress.cpp.
| bool spendsCoinbase = false |
Definition at line 29 of file mempool_stress.cpp.