Fabcoin Core
0.16.2
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 <txmempool.h>
Public Member Functions | |
CTxMemPoolEntry (const CTransactionRef &_tx, const CAmount &_nFee, int64_t _nTime, unsigned int _entryHeight, bool spendsCoinbase, int64_t nSigOpsCost, LockPoints lp, CAmount _nMinGasPrice=0) | |
CTxMemPoolEntry (const CTxMemPoolEntry &other) | |
const CTransaction & | GetTx () const |
CTransactionRef | GetSharedTx () const |
const CAmount & | GetFee () const |
size_t | GetTxSize () const |
size_t | GetTxWeight () const |
int64_t | GetTime () const |
unsigned int | GetHeight () const |
int64_t | GetSigOpCost () const |
int64_t | GetModifiedFee () const |
size_t | DynamicMemoryUsage () const |
const LockPoints & | GetLockPoints () const |
const CAmount & | GetMinGasPrice () const |
void | UpdateDescendantState (int64_t modifySize, CAmount modifyFee, int64_t modifyCount) |
void | UpdateAncestorState (int64_t modifySize, CAmount modifyFee, int64_t modifyCount, int modifySigOps) |
void | UpdateFeeDelta (int64_t feeDelta) |
void | UpdateLockPoints (const LockPoints &lp) |
uint64_t | GetCountWithDescendants () const |
uint64_t | GetSizeWithDescendants () const |
CAmount | GetModFeesWithDescendants () const |
bool | GetSpendsCoinbase () const |
uint64_t | GetCountWithAncestors () const |
uint64_t | GetSizeWithAncestors () const |
CAmount | GetModFeesWithAncestors () const |
int64_t | GetSigOpCostWithAncestors () const |
Public Attributes | |
size_t | vTxHashesIdx |
Index in mempool's vTxHashes. More... | |
Private Attributes | |
CTransactionRef | tx |
CAmount | nFee |
Cached to avoid expensive parent-transaction lookups. More... | |
size_t | nTxWeight |
... and avoid recomputing tx weight (also used for GetTxSize()) More... | |
size_t | nUsageSize |
... and total memory usage More... | |
int64_t | nTime |
Local time when entering the mempool. More... | |
unsigned int | entryHeight |
Chain height when entering the mempool. More... | |
bool | spendsCoinbase |
keep track of transactions that spend a coinbase More... | |
int64_t | sigOpCost |
Total sigop cost. More... | |
int64_t | feeDelta |
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... | |
CAmount | nMinGasPrice |
The minimum gas price among the contract outputs of the tx. More... | |
uint64_t | nCountWithDescendants |
number of descendant transactions More... | |
uint64_t | nSizeWithDescendants |
... and size More... | |
CAmount | nModFeesWithDescendants |
... and total fees (all including us) More... | |
uint64_t | nCountWithAncestors |
uint64_t | nSizeWithAncestors |
CAmount | nModFeesWithAncestors |
int64_t | nSigOpCostWithAncestors |
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 (nCountWithDescendants, nSizeWithDescendants, and nModFeesWithDescendants) for all ancestors of the newly added transaction.
Definition at line 66 of file txmempool.h.
CTxMemPoolEntry::CTxMemPoolEntry | ( | const CTransactionRef & | _tx, |
const CAmount & | _nFee, | ||
int64_t | _nTime, | ||
unsigned int | _entryHeight, | ||
bool | spendsCoinbase, | ||
int64_t | nSigOpsCost, | ||
LockPoints | lp, | ||
CAmount | _nMinGasPrice = 0 |
||
) |
CTxMemPoolEntry::CTxMemPoolEntry | ( | const CTxMemPoolEntry & | other | ) |
Definition at line 43 of file txmempool.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 112 of file txmempool.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 109 of file txmempool.h.
|
inline |
Definition at line 134 of file txmempool.h.
|
inline |
|
inline |
|
inline |
Definition at line 129 of file txmempool.h.
|
inline |
|
inline |
size_t CTxMemPoolEntry::GetTxSize | ( | ) | const |
Definition at line 60 of file txmempool.cpp.
|
inline |
Definition at line 106 of file txmempool.h.
void CTxMemPoolEntry::UpdateAncestorState | ( | int64_t | modifySize, |
CAmount | modifyFee, | ||
int64_t | modifyCount, | ||
int | modifySigOps | ||
) |
Definition at line 326 of file txmempool.cpp.
void CTxMemPoolEntry::UpdateDescendantState | ( | int64_t | modifySize, |
CAmount | modifyFee, | ||
int64_t | modifyCount | ||
) |
Definition at line 317 of file txmempool.cpp.
void CTxMemPoolEntry::UpdateFeeDelta | ( | int64_t | feeDelta | ) |
void CTxMemPoolEntry::UpdateLockPoints | ( | const LockPoints & | lp | ) |
|
private |
Chain height when entering the mempool.
Definition at line 74 of file txmempool.h.
|
private |
Used for determining the priority of the transaction for mining in a block.
Definition at line 77 of file txmempool.h.
|
private |
Track the height and time at which tx was final.
Definition at line 78 of file txmempool.h.
|
private |
Definition at line 89 of file txmempool.h.
|
private |
number of descendant transactions
Definition at line 84 of file txmempool.h.
|
private |
Cached to avoid expensive parent-transaction lookups.
Definition at line 70 of file txmempool.h.
|
private |
The minimum gas price among the contract outputs of the tx.
Definition at line 79 of file txmempool.h.
|
private |
Definition at line 91 of file txmempool.h.
|
private |
... and total fees (all including us)
Definition at line 86 of file txmempool.h.
|
private |
Definition at line 92 of file txmempool.h.
|
private |
Definition at line 90 of file txmempool.h.
|
private |
... and size
Definition at line 85 of file txmempool.h.
|
private |
Local time when entering the mempool.
Definition at line 73 of file txmempool.h.
|
private |
... and avoid recomputing tx weight (also used for GetTxSize())
Definition at line 71 of file txmempool.h.
|
private |
... and total memory usage
Definition at line 72 of file txmempool.h.
|
private |
Total sigop cost.
Definition at line 76 of file txmempool.h.
|
private |
keep track of transactions that spend a coinbase
Definition at line 75 of file txmempool.h.
|
private |
Definition at line 69 of file txmempool.h.
|
mutable |
Index in mempool's vTxHashes.
Definition at line 136 of file txmempool.h.