Definition at line 148 of file txmempool.cpp.
◆ CMinerPolicyEstimator()
| CMinerPolicyEstimator::CMinerPolicyEstimator |
( |
int |
nEntries | ) |
|
|
inline |
◆ estimateFee()
| CFeeRate CMinerPolicyEstimator::estimateFee |
( |
int |
nBlocksToConfirm | ) |
|
|
inline |
Can return CFeeRate(0) if we don't have any data for that many blocks back.
nBlocksToConfirm is 1 based.
Definition at line 257 of file txmempool.cpp.
◆ estimatePriority()
| double CMinerPolicyEstimator::estimatePriority |
( |
int |
nBlocksToConfirm | ) |
|
|
inline |
◆ Read()
| void CMinerPolicyEstimator::Read |
( |
CAutoFile & |
filein, |
|
|
const CFeeRate & |
minRelayFee |
|
) |
| |
|
inline |
◆ seenBlock()
| void CMinerPolicyEstimator::seenBlock |
( |
const std::vector< CTxMemPoolEntry > & |
entries, |
|
|
int |
nBlockHeight, |
|
|
const CFeeRate |
minRelayFee |
|
) |
| |
|
inline |
◆ seenTxConfirm()
| void CMinerPolicyEstimator::seenTxConfirm |
( |
const CFeeRate & |
feeRate, |
|
|
const CFeeRate & |
minRelayFee, |
|
|
double |
dPriority, |
|
|
int |
nBlocksAgo |
|
) |
| |
|
inlineprivate |
nBlocksAgo is 0 based, i.e.
transactions that confirmed in the highest seen block are nBlocksAgo == 0, transactions in the block before that are nBlocksAgo == 1 etc.
Definition at line 165 of file txmempool.cpp.
◆ Write()
| void CMinerPolicyEstimator::Write |
( |
CAutoFile & |
fileout | ) |
const |
|
inline |
◆ history
Records observed averages transactions that confirmed within one block, two blocks, three blocks etc.
Definition at line 155 of file txmempool.cpp.
◆ nBestSeenHeight
| int CMinerPolicyEstimator::nBestSeenHeight |
|
private |
◆ sortedFeeSamples
| std::vector<CFeeRate> CMinerPolicyEstimator::sortedFeeSamples |
|
private |
◆ sortedPrioritySamples
| std::vector<double> CMinerPolicyEstimator::sortedPrioritySamples |
|
private |
The documentation for this class was generated from the following file: