aboutsummaryrefslogtreecommitdiff
path: root/src/policy/fees.cpp
diff options
context:
space:
mode:
authorAlex Morcos <[email protected]>2016-11-29 13:55:26 -0500
committerAlex Morcos <[email protected]>2017-01-04 12:10:18 -0500
commit78ae62d2646c5e6db410f324046d0c3b15e0ad0a (patch)
treefe8f4588941c1b07ee376d40543823c4204a20db /src/policy/fees.cpp
parentAdd extra logging to processBlock in fee estimation. (diff)
downloaddiscoin-78ae62d2646c5e6db410f324046d0c3b15e0ad0a.tar.xz
discoin-78ae62d2646c5e6db410f324046d0c3b15e0ad0a.zip
Add clarifying comments to fee estimation
Diffstat (limited to 'src/policy/fees.cpp')
-rw-r--r--src/policy/fees.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp
index ec1dd492c..f1c93a497 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);