Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Lines | public: | ||||
int64_t GetSigChecks() const { return sigChecks; } | int64_t GetSigChecks() const { return sigChecks; } | ||||
Amount GetModifiedFee() const { return nFee + feeDelta; } | Amount GetModifiedFee() const { return nFee + feeDelta; } | ||||
CFeeRate GetModifiedFeeRate() const { | CFeeRate GetModifiedFeeRate() const { | ||||
return CFeeRate(GetModifiedFee(), GetTxVirtualSize()); | return CFeeRate(GetModifiedFee(), GetTxVirtualSize()); | ||||
} | } | ||||
size_t DynamicMemoryUsage() const { return nUsageSize; } | size_t DynamicMemoryUsage() const { return nUsageSize; } | ||||
const LockPoints &GetLockPoints() const { return lockPoints; } | const LockPoints &GetLockPoints() const { return lockPoints; } | ||||
// Adjusts the descendant state. -- To be removed after Wellington | |||||
void UpdateDescendantState(int64_t modifySize, Amount modifyFee, | |||||
int64_t modifyCount, int64_t modifySigChecks); | |||||
// Adjusts the ancestor state -- To be removed after Wellington | |||||
void UpdateAncestorState(int64_t modifySize, Amount modifyFee, | |||||
int64_t modifyCount, int64_t modifySigChecks); | |||||
// Updates the fee delta used for mining priority score, and the | // Updates the fee delta used for mining priority score, and the | ||||
// modified fees with descendants. | // modified fees with descendants. | ||||
void UpdateFeeDelta(Amount feeDelta); | void UpdateFeeDelta(Amount feeDelta); | ||||
// Update the LockPoints after a reorg | // Update the LockPoints after a reorg | ||||
void UpdateLockPoints(const LockPoints &lp); | void UpdateLockPoints(const LockPoints &lp); | ||||
uint64_t GetCountWithDescendants() const { return nCountWithDescendants; } | uint64_t GetCountWithDescendants() const { return nCountWithDescendants; } | ||||
uint64_t GetSizeWithDescendants() const { return nSizeWithDescendants; } | uint64_t GetSizeWithDescendants() const { return nSizeWithDescendants; } | ||||
▲ Show 20 Lines • Show All 738 Lines • Show Last 20 Lines |