Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 935 Lines • ▼ Show 20 Lines | CFeeRate CTxMemPool::estimateFee(int nBlocks) const { | ||||
return minerPolicyEstimator->estimateFee(nBlocks); | return minerPolicyEstimator->estimateFee(nBlocks); | ||||
} | } | ||||
CFeeRate CTxMemPool::estimateSmartFee(int nBlocks, | CFeeRate CTxMemPool::estimateSmartFee(int nBlocks, | ||||
int *answerFoundAtBlocks) const { | int *answerFoundAtBlocks) const { | ||||
LOCK(cs); | LOCK(cs); | ||||
return minerPolicyEstimator->estimateSmartFee(nBlocks, answerFoundAtBlocks, | return minerPolicyEstimator->estimateSmartFee(nBlocks, answerFoundAtBlocks, | ||||
*this); | *this); | ||||
} | } | ||||
double CTxMemPool::estimateSmartPriority(int nBlocks, | |||||
int *answerFoundAtBlocks) const { | |||||
LOCK(cs); | |||||
return minerPolicyEstimator->estimateSmartPriority( | |||||
nBlocks, answerFoundAtBlocks, *this); | |||||
} | |||||
bool CTxMemPool::WriteFeeEstimates(CAutoFile &fileout) const { | bool CTxMemPool::WriteFeeEstimates(CAutoFile &fileout) const { | ||||
try { | try { | ||||
LOCK(cs); | LOCK(cs); | ||||
// version required to read: 0.13.99 or later | // version required to read: 0.13.99 or later | ||||
fileout << 139900; | fileout << 139900; | ||||
// version that wrote the file | // version that wrote the file | ||||
fileout << CLIENT_VERSION; | fileout << CLIENT_VERSION; | ||||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |