![]() |
Bitcoin Core 31.0.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 Attributes | |
| size_t | idx_randomized |
| Index in mempool's txns_randomized. | |
Private Member Functions | |
| CTxMemPoolEntry (const CTxMemPoolEntry &)=delete | |
Private Attributes | |
| const CTransactionRef | tx |
| const CAmount | nFee |
| Cached to avoid expensive parent-transaction lookups. | |
| const int32_t | nTxWeight |
| ... and avoid recomputing tx weight (also used for GetTxSize()) | |
| const size_t | nUsageSize |
| ... and total memory usage | |
| const int64_t | nTime |
| Local time when entering the mempool. | |
| const uint64_t | entry_sequence |
| Sequence number used to determine whether this transaction is too recent for relay. | |
| const unsigned int | entryHeight |
| Chain height when entering the mempool. | |
| const bool | spendsCoinbase |
| keep track of transactions that spend a coinbase | |
| const int64_t | sigOpCost |
| Total sigop cost. | |
| CAmount | m_modified_fee |
| Used for determining the priority of the transaction for mining in a block. | |
| LockPoints | lockPoints |
| Track the height and time at which tx was final. | |
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 65 of file mempool_entry.h.
| typedef std::reference_wrapper<const CTxMemPoolEntry> CTxMemPoolEntry::CTxMemPoolEntryRef |
Definition at line 68 of file mempool_entry.h.
|
privatedelete |
|
virtualdefault |
|
inline |
Definition at line 87 of file mempool_entry.h.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 110 of file mempool_entry.h.
|
inline |
|
delete |
|
delete |
|
inline |
Definition at line 131 of file mempool_entry.h.
|
private |
Sequence number used to determine whether this transaction is too recent for relay.
Definition at line 78 of file mempool_entry.h.
Chain height when entering the mempool.
Definition at line 79 of file mempool_entry.h.
|
mutable |
Index in mempool's txns_randomized.
Definition at line 138 of file mempool_entry.h.
|
mutableprivate |
Track the height and time at which tx was final.
Definition at line 83 of file mempool_entry.h.
|
mutableprivate |
Used for determining the priority of the transaction for mining in a block.
Definition at line 82 of file mempool_entry.h.
|
private |
Cached to avoid expensive parent-transaction lookups.
Definition at line 74 of file mempool_entry.h.
|
private |
Local time when entering the mempool.
Definition at line 77 of file mempool_entry.h.
|
private |
... and avoid recomputing tx weight (also used for GetTxSize())
Definition at line 75 of file mempool_entry.h.
|
private |
... and total memory usage
Definition at line 76 of file mempool_entry.h.
|
private |
Total sigop cost.
Definition at line 81 of file mempool_entry.h.
|
private |
keep track of transactions that spend a coinbase
Definition at line 80 of file mempool_entry.h.
|
private |
Definition at line 73 of file mempool_entry.h.