Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 721 Lines • ▼ Show 20 Lines | public: | ||||
* where one can be given. | * where one can be given. | ||||
*/ | */ | ||||
CFeeRate estimateSmartFee(int nBlocks, | CFeeRate estimateSmartFee(int nBlocks, | ||||
int *answerFoundAtBlocks = nullptr) const; | int *answerFoundAtBlocks = nullptr) const; | ||||
/** Estimate fee rate needed to get into the next nBlocks */ | /** Estimate fee rate needed to get into the next nBlocks */ | ||||
CFeeRate estimateFee(int nBlocks) const; | CFeeRate estimateFee(int nBlocks) const; | ||||
/** | |||||
* Estimate priority needed to get into the next nBlocks. If no answer can | |||||
* be given at nBlocks, return an estimate at the lowest number of blocks | |||||
* where one can be given. | |||||
*/ | |||||
double estimateSmartPriority(int nBlocks, | |||||
int *answerFoundAtBlocks = nullptr) const; | |||||
/** Write/Read estimates to disk */ | /** Write/Read estimates to disk */ | ||||
bool WriteFeeEstimates(CAutoFile &fileout) const; | bool WriteFeeEstimates(CAutoFile &fileout) const; | ||||
bool ReadFeeEstimates(CAutoFile &filein); | bool ReadFeeEstimates(CAutoFile &filein); | ||||
size_t DynamicMemoryUsage() const; | size_t DynamicMemoryUsage() const; | ||||
boost::signals2::signal<void(CTransactionRef)> NotifyEntryAdded; | boost::signals2::signal<void(CTransactionRef)> NotifyEntryAdded; | ||||
boost::signals2::signal<void(CTransactionRef, MemPoolRemovalReason)> | boost::signals2::signal<void(CTransactionRef, MemPoolRemovalReason)> | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |