Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | private: | ||||
uint64_t nCountWithAncestors; | uint64_t nCountWithAncestors; | ||||
uint64_t nSizeWithAncestors; | uint64_t nSizeWithAncestors; | ||||
Amount nModFeesWithAncestors; | Amount nModFeesWithAncestors; | ||||
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, unsigned int _entryHeight, | int64_t _nTime, unsigned int _entryHeight, | ||||
bool spendsCoinbase, int64_t nSigOpsCost, LockPoints lp); | bool spendsCoinbase, int64_t _sigOpCount, LockPoints lp); | ||||
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; } | ||||
const Amount GetFee() const { return nFee; } | const Amount GetFee() const { return nFee; } | ||||
size_t GetTxSize() const { return nTxSize; } | size_t GetTxSize() const { return nTxSize; } | ||||
int64_t GetTime() const { return nTime; } | int64_t GetTime() const { return nTime; } | ||||
unsigned int GetHeight() const { return entryHeight; } | unsigned int GetHeight() const { return entryHeight; } | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
private: | private: | ||||
int64_t modifySize; | int64_t modifySize; | ||||
Amount modifyFee; | Amount modifyFee; | ||||
int64_t modifyCount; | int64_t modifyCount; | ||||
}; | }; | ||||
struct update_ancestor_state { | struct update_ancestor_state { | ||||
update_ancestor_state(int64_t _modifySize, Amount _modifyFee, | update_ancestor_state(int64_t _modifySize, Amount _modifyFee, | ||||
int64_t _modifyCount, int64_t _modifySigOpsCost) | int64_t _modifyCount, int64_t _modifySigOps) | ||||
: modifySize(_modifySize), modifyFee(_modifyFee), | : modifySize(_modifySize), modifyFee(_modifyFee), | ||||
modifyCount(_modifyCount), modifySigOpsCost(_modifySigOpsCost) {} | modifyCount(_modifyCount), modifySigOps(_modifySigOps) {} | ||||
void operator()(CTxMemPoolEntry &e) { | void operator()(CTxMemPoolEntry &e) { | ||||
e.UpdateAncestorState(modifySize, modifyFee, modifyCount, | e.UpdateAncestorState(modifySize, modifyFee, modifyCount, modifySigOps); | ||||
modifySigOpsCost); | |||||
} | } | ||||
private: | private: | ||||
int64_t modifySize; | int64_t modifySize; | ||||
Amount modifyFee; | Amount modifyFee; | ||||
int64_t modifyCount; | int64_t modifyCount; | ||||
int64_t modifySigOpsCost; | int64_t modifySigOps; | ||||
}; | }; | ||||
struct update_fee_delta { | struct update_fee_delta { | ||||
explicit update_fee_delta(Amount _feeDelta) : feeDelta(_feeDelta) {} | explicit update_fee_delta(Amount _feeDelta) : feeDelta(_feeDelta) {} | ||||
void operator()(CTxMemPoolEntry &e) { e.UpdateFeeDelta(feeDelta); } | void operator()(CTxMemPoolEntry &e) { e.UpdateFeeDelta(feeDelta); } | ||||
private: | private: | ||||
▲ Show 20 Lines • Show All 778 Lines • Show Last 20 Lines |