 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
23 for (
int i = 0; i < 1000; ++i) {
27 tx.
vin[0].scriptWitness.stack.push_back({1});
30 tx.
vout[0].nValue = i;
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Main entry point to nanobench's benchmarking facility.
static CTransactionRef MakeTransactionRef(Tx &&txIn)
std::shared_ptr< const CTransaction > CTransactionRef
static void AddTx(const CTransactionRef &tx, const CAmount &fee, CTxMemPool &pool) EXCLUSIVE_LOCKS_REQUIRED(cs_main
RecursiveMutex cs
This mutex needs to be locked when accessing mapTx or other members that are guarded by it.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
int64_t CAmount
Amount in satoshis (Can be negative)
Serialized script, used inside transaction inputs and outputs.
std::vector< CTxOut > vout
UniValue MempoolToJSON(const CTxMemPool &pool, bool verbose, bool include_mempool_sequence)
Mempool to JSON.
#define EXCLUSIVE_LOCKS_REQUIRED(...)
static void RpcMempool(benchmark::Bench &bench)
A mutable version of CTransaction.
RecursiveMutex cs_main
Mutex to guard access to validation specific variables, such as reading or changing the chainstate.