|
|
@ -249,7 +249,7 @@ unsigned int TxConfirmStats::NewTx(unsigned int nBlockHeight, double val) |
|
|
|
unsigned int bucketindex = bucketMap.lower_bound(val)->second; |
|
|
|
unsigned int bucketindex = bucketMap.lower_bound(val)->second; |
|
|
|
unsigned int blockIndex = nBlockHeight % unconfTxs.size(); |
|
|
|
unsigned int blockIndex = nBlockHeight % unconfTxs.size(); |
|
|
|
unconfTxs[blockIndex][bucketindex]++; |
|
|
|
unconfTxs[blockIndex][bucketindex]++; |
|
|
|
LogPrint("estimatefee", "adding to %s\n", dataTypeString); |
|
|
|
LogPrint("estimatefee", "adding to %s", dataTypeString); |
|
|
|
return bucketindex; |
|
|
|
return bucketindex; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -390,8 +390,9 @@ void CBlockPolicyEstimator::processTransaction(const CTxMemPoolEntry& entry, boo |
|
|
|
mapMemPoolTxs[hash].bucketIndex = feeStats.NewTx(txHeight, (double)feeRate.GetFeePerK()); |
|
|
|
mapMemPoolTxs[hash].bucketIndex = feeStats.NewTx(txHeight, (double)feeRate.GetFeePerK()); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
LogPrint("estimatefee", "not adding\n"); |
|
|
|
LogPrint("estimatefee", "not adding"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
LogPrint("estimatefee", "\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void CBlockPolicyEstimator::processBlockTx(unsigned int nBlockHeight, const CTxMemPoolEntry& entry) |
|
|
|
void CBlockPolicyEstimator::processBlockTx(unsigned int nBlockHeight, const CTxMemPoolEntry& entry) |
|
|
|