Bitcoin Core  25.99.0
P2P Digital Currency
Classes | Enumerations | Functions | Variables
txmempool.h File Reference
#include <atomic>
#include <map>
#include <optional>
#include <set>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include <kernel/mempool_limits.h>
#include <kernel/mempool_options.h>
#include <coins.h>
#include <consensus/amount.h>
#include <indirectmap.h>
#include <kernel/cs_main.h>
#include <kernel/mempool_entry.h>
#include <policy/feerate.h>
#include <policy/packages.h>
#include <primitives/transaction.h>
#include <random.h>
#include <sync.h>
#include <util/epochguard.h>
#include <util/hasher.h>
#include <util/result.h>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/sequenced_index.hpp>
#include <boost/multi_index_container.hpp>
Include dependency graph for txmempool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mempoolentry_txid
 
struct  mempoolentry_wtxid
 
class  CompareTxMemPoolEntryByDescendantScore
 Sort an entry by max(score/size of entry's tx, score/size with all descendants). More...
 
class  CompareTxMemPoolEntryByScore
 Sort by feerate of entry (fee/size) in descending order This is only used for transaction relay, so we use GetFee() instead of GetModifiedFee() to avoid leaking prioritization information via the sort order. More...
 
class  CompareTxMemPoolEntryByEntryTime
 
class  CompareTxMemPoolEntryByAncestorFee
 
struct  descendant_score
 
struct  entry_time
 
struct  ancestor_score
 
struct  index_by_wtxid
 
struct  TxMempoolInfo
 Information about a mempool transaction. More...
 
class  CTxMemPool
 CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the next block. More...
 
class  CCoinsViewMemPool
 CCoinsView that brings transactions from a mempool into view. More...
 
struct  txid_index
 DisconnectedBlockTransactions. More...
 
struct  insertion_order
 
struct  DisconnectedBlockTransactions
 

Enumerations

enum class  MemPoolRemovalReason {
  EXPIRY , SIZELIMIT , REORG , BLOCK ,
  CONFLICT , REPLACED
}
 Reason why a transaction was removed from the mempool, this is passed to the notification signal. More...
 

Functions

bool TestLockPointValidity (CChain &active_chain, const LockPoints &lp) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
 Test whether the LockPoints height and time are still valid on the current chain. More...
 
std::string RemovalReasonToString (const MemPoolRemovalReason &r) noexcept
 

Variables

static const uint32_t MEMPOOL_HEIGHT = 0x7FFFFFFF
 Fake height value used in Coin to signify they are only in the memory pool (since 0.8) More...
 

Enumeration Type Documentation

◆ MemPoolRemovalReason

enum MemPoolRemovalReason
strong

Reason why a transaction was removed from the mempool, this is passed to the notification signal.

Enumerator
EXPIRY 

Expired from mempool.

SIZELIMIT 

Removed in size limiting.

REORG 

Removed for reorganization.

BLOCK 

Removed for block.

CONFLICT 

Removed for conflict with in-block transaction.

REPLACED 

Removed for replacement.

Definition at line 231 of file txmempool.h.

Function Documentation

◆ RemovalReasonToString()

std::string RemovalReasonToString ( const MemPoolRemovalReason r)
noexcept

Definition at line 1164 of file txmempool.cpp.

◆ TestLockPointValidity()

bool TestLockPointValidity ( CChain active_chain,
const LockPoints lp 
)

Test whether the LockPoints height and time are still valid on the current chain.

Definition at line 34 of file txmempool.cpp.

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

Variable Documentation

◆ MEMPOOL_HEIGHT

const uint32_t MEMPOOL_HEIGHT = 0x7FFFFFFF
static

Fake height value used in Coin to signify they are only in the memory pool (since 0.8)

Definition at line 45 of file txmempool.h.