Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | private: | ||||
int64_t nSigOpCountWithAncestors; | int64_t nSigOpCountWithAncestors; | ||||
public: | public: | ||||
CTxMemPoolEntry(const CTransactionRef &_tx, const Amount _nFee, | CTxMemPoolEntry(const CTransactionRef &_tx, const Amount _nFee, | ||||
int64_t _nTime, double _entryPriority, | int64_t _nTime, double _entryPriority, | ||||
unsigned int _entryHeight, Amount _inChainInputValue, | unsigned int _entryHeight, Amount _inChainInputValue, | ||||
bool spendsCoinbase, int64_t nSigOpsCost, LockPoints lp); | bool spendsCoinbase, int64_t nSigOpsCost, LockPoints lp); | ||||
CTxMemPoolEntry(const CTxMemPoolEntry &other); | |||||
const CTransaction &GetTx() const { return *this->tx; } | const CTransaction &GetTx() const { return *this->tx; } | ||||
CTransactionRef GetSharedTx() const { return this->tx; } | CTransactionRef GetSharedTx() const { return this->tx; } | ||||
/** | /** | ||||
* Fast calculation of lower bound of current priority as update from entry | * Fast calculation of lower bound of current priority as update from entry | ||||
* priority. Only inputs that were originally in-chain will age. | * priority. Only inputs that were originally in-chain will age. | ||||
*/ | */ | ||||
double GetPriority(unsigned int currentHeight) const; | double GetPriority(unsigned int currentHeight) const; | ||||
const Amount GetFee() const { return nFee; } | const Amount GetFee() const { return nFee; } | ||||
▲ Show 20 Lines • Show All 802 Lines • Show Last 20 Lines |