diff options
author | Alex Morcos <morcos@chaincode.com> | 2016-11-29 13:55:26 -0500 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2017-01-04 12:10:18 -0500 |
commit | 78ae62d2646c5e6db410f324046d0c3b15e0ad0a (patch) | |
tree | fe8f4588941c1b07ee376d40543823c4204a20db /src/policy/fees.cpp | |
parent | 5fe0f47aa7d4cd4ed58ad37e6e4035f5c0625a23 (diff) |
Add clarifying comments to fee estimation
Diffstat (limited to 'src/policy/fees.cpp')
-rw-r--r-- | src/policy/fees.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index ec1dd492cb..f1c93a4978 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -281,6 +281,11 @@ void TxConfirmStats::removeTx(unsigned int entryHeight, unsigned int nBestSeenHe } } +// This function is called from CTxMemPool::removeUnchecked to ensure +// txs removed from the mempool for any reason are no longer +// tracked. Txs that were part of a block have already been removed in +// processBlockTx to ensure they are never double tracked, but it is +// of no harm to try to remove them again. bool CBlockPolicyEstimator::removeTx(uint256 hash) { std::map<uint256, TxStatsInfo>::iterator pos = mapMemPoolTxs.find(hash); |