![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
CTxMemPoolEntry stores data about the corresponding transaction, as well as data about all in-mempool transactions that depend on the transaction ("descendant" transactions). More...
#include <mempool_entry.h>
Public Types | |
| typedef std::reference_wrapper< const CTxMemPoolEntry > | CTxMemPoolEntryRef |
Public Member Functions | |
| virtual | ~CTxMemPoolEntry ()=default |
| CTxMemPoolEntry (TxGraph::Ref &&ref, const CTransactionRef &tx, CAmount fee, int64_t time, unsigned int entry_height, uint64_t entry_sequence, bool spends_coinbase, int64_t sigops_cost, LockPoints lp) | |
| CTxMemPoolEntry & | operator= (const CTxMemPoolEntry &)=delete |
| CTxMemPoolEntry (CTxMemPoolEntry &&)=default | |
| CTxMemPoolEntry & | operator= (CTxMemPoolEntry &&)=delete |
| const CTransaction & | GetTx () const |
| CTransactionRef | GetSharedTx () const |
| const CAmount & | GetFee () const |
| int32_t | GetTxSize () const |
| int32_t | GetAdjustedWeight () const |
| int32_t | GetTxWeight () const |
| std::chrono::seconds | GetTime () const |
| unsigned int | GetHeight () const |
| uint64_t | GetSequence () const |
| int64_t | GetSigOpCost () const |
| CAmount | GetModifiedFee () const |
| size_t | DynamicMemoryUsage () const |
| const LockPoints & | GetLockPoints () const |
| void | UpdateModifiedFee (CAmount fee_diff) |
| void | UpdateLockPoints (const LockPoints &lp) const |
| bool | GetSpendsCoinbase () const |
Public Member Functions inherited from TxGraph::Ref | |
| Ref () noexcept=default | |
| Construct an empty Ref. More... | |
| virtual | ~Ref () |
| Destroy this Ref. More... | |
| Ref & | operator= (Ref &&other) noexcept=delete |
| Ref (Ref &&other) noexcept | |
| Ref & | operator= (const Ref &)=delete |
| Ref (const Ref &)=delete | |
Public Attributes | |
| size_t | idx_randomized |
| Index in mempool's txns_randomized. More... | |
| Epoch::Marker | m_epoch_marker |
| epoch when last touched, useful for graph algorithms More... | |
Private Member Functions | |
| CTxMemPoolEntry (const CTxMemPoolEntry &)=delete | |
Private Attributes | |
| const CTransactionRef | tx |
| const CAmount | nFee |
| Cached to avoid expensive parent-transaction lookups. More... | |
| const int32_t | nTxWeight |
| ... and avoid recomputing tx weight (also used for GetTxSize()) More... | |
| const size_t | nUsageSize |
| ... and total memory usage More... | |
| const int64_t | nTime |
| Local time when entering the mempool. More... | |
| const uint64_t | entry_sequence |
| Sequence number used to determine whether this transaction is too recent for relay. More... | |
| const unsigned int | entryHeight |
| Chain height when entering the mempool. More... | |
| const bool | spendsCoinbase |
| keep track of transactions that spend a coinbase More... | |
| const int64_t | sigOpCost |
| Total sigop cost. More... | |
| CAmount | m_modified_fee |
| Used for determining the priority of the transaction for mining in a block. More... | |
| LockPoints | lockPoints |
| Track the height and time at which tx was final. More... | |
CTxMemPoolEntry stores data about the corresponding transaction, as well as data about all in-mempool transactions that depend on the transaction ("descendant" transactions).
When a new entry is added to the mempool, we update the descendant state (m_count_with_descendants, nSizeWithDescendants, and nModFeesWithDescendants) for all ancestors of the newly added transaction.
Definition at line 66 of file mempool_entry.h.
| typedef std::reference_wrapper<const CTxMemPoolEntry> CTxMemPoolEntry::CTxMemPoolEntryRef |
Definition at line 69 of file mempool_entry.h.
|
privatedelete |
|
virtualdefault |
|
inline |
Definition at line 88 of file mempool_entry.h.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 112 of file mempool_entry.h.
|
inline |
|
delete |
|
delete |
|
inline |
Definition at line 133 of file mempool_entry.h.
|
inline |
Definition at line 127 of file mempool_entry.h.
|
private |
Sequence number used to determine whether this transaction is too recent for relay.
Definition at line 79 of file mempool_entry.h.
|
private |
Chain height when entering the mempool.
Definition at line 80 of file mempool_entry.h.
|
mutable |
Index in mempool's txns_randomized.
Definition at line 140 of file mempool_entry.h.
|
mutableprivate |
Track the height and time at which tx was final.
Definition at line 84 of file mempool_entry.h.
|
mutable |
epoch when last touched, useful for graph algorithms
Definition at line 141 of file mempool_entry.h.
|
private |
Used for determining the priority of the transaction for mining in a block.
Definition at line 83 of file mempool_entry.h.
|
private |
Cached to avoid expensive parent-transaction lookups.
Definition at line 75 of file mempool_entry.h.
|
private |
Local time when entering the mempool.
Definition at line 78 of file mempool_entry.h.
|
private |
... and avoid recomputing tx weight (also used for GetTxSize())
Definition at line 76 of file mempool_entry.h.
|
private |
... and total memory usage
Definition at line 77 of file mempool_entry.h.
|
private |
Total sigop cost.
Definition at line 82 of file mempool_entry.h.
|
private |
keep track of transactions that spend a coinbase
Definition at line 81 of file mempool_entry.h.
|
private |
Definition at line 74 of file mempool_entry.h.