Changeset View
Changeset View
Standalone View
Standalone View
src/policy/fees.cpp
Show First 20 Lines • Show All 515 Lines • ▼ Show 20 Lines | CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, | ||||
if (median < 0) { | if (median < 0) { | ||||
return CFeeRate(Amount(0)); | return CFeeRate(Amount(0)); | ||||
} | } | ||||
return CFeeRate(Amount(int64_t(median))); | return CFeeRate(Amount(int64_t(median))); | ||||
} | } | ||||
double CBlockPolicyEstimator::estimatePriority(int confTarget) { | |||||
return -1; | |||||
} | |||||
double CBlockPolicyEstimator::estimateSmartPriority(int confTarget, | double CBlockPolicyEstimator::estimateSmartPriority(int confTarget, | ||||
int *answerFoundAtTarget, | int *answerFoundAtTarget, | ||||
const CTxMemPool &pool) { | const CTxMemPool &pool) { | ||||
if (answerFoundAtTarget) { | if (answerFoundAtTarget) { | ||||
*answerFoundAtTarget = confTarget; | *answerFoundAtTarget = confTarget; | ||||
} | } | ||||
// If mempool is limiting txs, no priority txs are allowed | // If mempool is limiting txs, no priority txs are allowed | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |