PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CTxMemPoolEntry Class Reference

CTxMemPool stores these: More...

#include <txmempool.h>

Collaboration diagram for CTxMemPoolEntry:
[legend]

Public Member Functions

 CTxMemPoolEntry (const CTransaction &_tx, const CAmount &_nFee, int64_t _nTime, double _dPriority, unsigned int _nHeight)
 Chain height when entering the mempool. More...
 
 CTxMemPoolEntry ()
 
 CTxMemPoolEntry (const CTxMemPoolEntry &other)
 
const CTransactionGetTx () const
 
double GetPriority (unsigned int currentHeight) const
 
CAmount GetFee () const
 
size_t GetTxSize () const
 
int64_t GetTime () const
 
unsigned int GetHeight () const
 

Private Attributes

CTransaction tx
 
CAmount nFee
 
size_t nTxSize
 Cached to avoid expensive parent-transaction lookups. More...
 
size_t nModSize
 ... and avoid recomputing tx size More...
 
int64_t nTime
 ... and modified size for priority More...
 
double dPriority
 Local time when entering the mempool. More...
 
unsigned int nHeight
 Priority when entering the mempool. More...
 

Detailed Description

CTxMemPool stores these:

Definition at line 40 of file txmempool.h.

Constructor & Destructor Documentation

◆ CTxMemPoolEntry() [1/3]

CTxMemPoolEntry::CTxMemPoolEntry ( const CTransaction _tx,
const CAmount _nFee,
int64_t  _nTime,
double  _dPriority,
unsigned int  _nHeight 
)

Chain height when entering the mempool.

Definition at line 25 of file txmempool.cpp.

Here is the call graph for this function:

◆ CTxMemPoolEntry() [2/3]

CTxMemPoolEntry::CTxMemPoolEntry ( )

Definition at line 20 of file txmempool.cpp.

◆ CTxMemPoolEntry() [3/3]

CTxMemPoolEntry::CTxMemPoolEntry ( const CTxMemPoolEntry other)

Definition at line 32 of file txmempool.cpp.

Member Function Documentation

◆ GetFee()

CAmount CTxMemPoolEntry::GetFee ( ) const
inline

Definition at line 58 of file txmempool.h.

◆ GetHeight()

unsigned int CTxMemPoolEntry::GetHeight ( ) const
inline

Definition at line 61 of file txmempool.h.

◆ GetPriority()

double CTxMemPoolEntry::GetPriority ( unsigned int  currentHeight) const

Definition at line 38 of file txmempool.cpp.

Here is the call graph for this function:

◆ GetTime()

int64_t CTxMemPoolEntry::GetTime ( ) const
inline

Definition at line 60 of file txmempool.h.

◆ GetTx()

const CTransaction& CTxMemPoolEntry::GetTx ( ) const
inline

Definition at line 56 of file txmempool.h.

Here is the caller graph for this function:

◆ GetTxSize()

size_t CTxMemPoolEntry::GetTxSize ( ) const
inline

Definition at line 59 of file txmempool.h.

Here is the caller graph for this function:

Member Data Documentation

◆ dPriority

double CTxMemPoolEntry::dPriority
private

Local time when entering the mempool.

Definition at line 48 of file txmempool.h.

◆ nFee

CAmount CTxMemPoolEntry::nFee
private

Definition at line 44 of file txmempool.h.

◆ nHeight

unsigned int CTxMemPoolEntry::nHeight
private

Priority when entering the mempool.

Definition at line 49 of file txmempool.h.

◆ nModSize

size_t CTxMemPoolEntry::nModSize
private

... and avoid recomputing tx size

Definition at line 46 of file txmempool.h.

◆ nTime

int64_t CTxMemPoolEntry::nTime
private

... and modified size for priority

Definition at line 47 of file txmempool.h.

◆ nTxSize

size_t CTxMemPoolEntry::nTxSize
private

Cached to avoid expensive parent-transaction lookups.

Definition at line 45 of file txmempool.h.

◆ tx

CTransaction CTxMemPoolEntry::tx
private

Definition at line 43 of file txmempool.h.


The documentation for this class was generated from the following files: