diff options
author | Alex Morcos <morcos@chaincode.com> | 2016-11-11 12:48:01 -0500 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2017-01-04 12:09:33 -0500 |
commit | 6f06b268c1f383affb2cf397f325d48d25bc8880 (patch) | |
tree | 0e46808e549fad7a3c5e8958f613b52ca60ee5ee /src/policy | |
parent | 84f7ab08d2e8e83a584d72fdf44f68b34baf8165 (diff) |
rename bool to validFeeEstimate
Diffstat (limited to 'src/policy')
-rw-r--r-- | src/policy/fees.cpp | 4 | ||||
-rw-r--r-- | src/policy/fees.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index ac2d7edaec..6b4567d195 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -306,7 +306,7 @@ CBlockPolicyEstimator::CBlockPolicyEstimator(const CFeeRate& _minRelayFee) feeStats.Initialize(vfeelist, MAX_BLOCK_CONFIRMS, DEFAULT_DECAY); } -void CBlockPolicyEstimator::processTransaction(const CTxMemPoolEntry& entry, bool fCurrentEstimate) +void CBlockPolicyEstimator::processTransaction(const CTxMemPoolEntry& entry, bool validFeeEstimate) { unsigned int txHeight = entry.GetHeight(); uint256 hash = entry.GetTx().GetHash(); @@ -324,7 +324,7 @@ void CBlockPolicyEstimator::processTransaction(const CTxMemPoolEntry& entry, boo // Only want to be updating estimates when our blockchain is synced, // otherwise we'll miscalculate how many blocks its taking to get included. - if (!fCurrentEstimate) + if (!validFeeEstimate) return; // Feerates are stored and reported as BTC-per-kb: diff --git a/src/policy/fees.h b/src/policy/fees.h index c88ba5b3cc..e062cd87bb 100644 --- a/src/policy/fees.h +++ b/src/policy/fees.h @@ -209,7 +209,7 @@ public: void processBlockTx(unsigned int nBlockHeight, const CTxMemPoolEntry& entry); /** Process a transaction accepted to the mempool*/ - void processTransaction(const CTxMemPoolEntry& entry, bool fCurrentEstimate); + void processTransaction(const CTxMemPoolEntry& entry, bool validFeeEstimate); /** Remove a transaction from the mempool tracking stats*/ bool removeTx(uint256 hash); |