Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
TransactionInfo Struct Reference

#include <mempool_entry.h>

Public Member Functions

 TransactionInfo (const CTransactionRef &tx, const CAmount &fee, const int64_t vsize, const unsigned int height)
 

Public Attributes

const CTransactionRef m_tx
 
const CAmount m_fee
 
const int64_t m_virtual_transaction_size
 The virtual transaction size. More...
 
const unsigned int txHeight
 

Detailed Description

Definition at line 193 of file mempool_entry.h.

Constructor & Destructor Documentation

◆ TransactionInfo()

TransactionInfo::TransactionInfo ( const CTransactionRef tx,
const CAmount fee,
const int64_t  vsize,
const unsigned int  height 
)
inline

Definition at line 210 of file mempool_entry.h.

Member Data Documentation

◆ m_fee

const CAmount TransactionInfo::m_fee

Definition at line 196 of file mempool_entry.h.

◆ m_tx

const CTransactionRef TransactionInfo::m_tx

Definition at line 194 of file mempool_entry.h.

◆ m_virtual_transaction_size

const int64_t TransactionInfo::m_virtual_transaction_size

The virtual transaction size.

This is a policy field which considers the sigop cost of the transaction as well as its weight, and reinterprets it as bytes.

It is the primary metric by which the mining algorithm selects transactions.

Definition at line 206 of file mempool_entry.h.

◆ txHeight

const unsigned int TransactionInfo::txHeight

Definition at line 208 of file mempool_entry.h.


The documentation for this struct was generated from the following file: