Bitcoin Core 28.99.0
P2P Digital Currency
Functions | Variables
mempool_ephemeral_spends.cpp File Reference
#include <bench/bench.h>
#include <consensus/amount.h>
#include <kernel/cs_main.h>
#include <policy/ephemeral_policy.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_ephemeral_spends.cpp:

Go to the source code of this file.

Functions

static void AddTx (const CTransactionRef &tx, CTxMemPool &pool) EXCLUSIVE_LOCKS_REQUIRED(cs_main
 
 AddToMempool (pool, CTxMemPoolEntry(tx, fee, nTime, nHeight, sequence, spendsCoinbase, sigOpCost, lp))
 
static void MempoolCheckEphemeralSpends (benchmark::Bench &bench)
 
 BENCHMARK (MempoolCheckEphemeralSpends, benchmark::PriorityLevel::HIGH)
 

Variables

static void pool cs
 
unsigned int nHeight {1}
 
uint64_t sequence {0}
 
bool spendsCoinbase {false}
 
unsigned int sigOpCost {4}
 
uint64_t fee {0}
 
LockPoints lp
 

Function Documentation

◆ AddToMempool()

AddToMempool ( pool  ,
CTxMemPoolEntry(tx, fee, nTime, nHeight, sequence, spendsCoinbase, sigOpCost, lp  
)
Here is the caller graph for this function:

◆ AddTx()

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

◆ BENCHMARK()

◆ MempoolCheckEphemeralSpends()

static void MempoolCheckEphemeralSpends ( benchmark::Bench bench)
static

Definition at line 37 of file mempool_ephemeral_spends.cpp.

Here is the call graph for this function:

Variable Documentation

◆ cs

void pool cs
Initial value:
{
int64_t nTime{0}

Definition at line 23 of file mempool_ephemeral_spends.cpp.

◆ fee

uint64_t fee {0}

Definition at line 30 of file mempool_ephemeral_spends.cpp.

◆ lp

Definition at line 31 of file mempool_ephemeral_spends.cpp.

◆ nHeight

unsigned int nHeight {1}

Definition at line 26 of file mempool_ephemeral_spends.cpp.

◆ sequence

uint64_t sequence {0}

Definition at line 27 of file mempool_ephemeral_spends.cpp.

◆ sigOpCost

unsigned int sigOpCost {4}

Definition at line 29 of file mempool_ephemeral_spends.cpp.

◆ spendsCoinbase

bool spendsCoinbase {false}

Definition at line 28 of file mempool_ephemeral_spends.cpp.