@@ -511,7 +511,7 @@ void TxConfirmStats::removeTx(unsigned int entryHeight, unsigned int nBestSeenHe
511511// of no harm to try to remove them again.
512512bool CBlockPolicyEstimator::removeTx (uint256 hash, bool inBlock)
513513{
514- LOCK (cs_feeEstimator );
514+ LOCK (m_cs_fee_estimator );
515515 std::map<uint256, TxStatsInfo>::iterator pos = mapMemPoolTxs.find (hash);
516516 if (pos != mapMemPoolTxs.end ()) {
517517 feeStats->removeTx (pos->second .blockHeight , nBestSeenHeight, pos->second .bucketIndex , inBlock);
@@ -548,7 +548,7 @@ CBlockPolicyEstimator::~CBlockPolicyEstimator()
548548
549549void CBlockPolicyEstimator::processTransaction (const CTxMemPoolEntry& entry, bool validFeeEstimate)
550550{
551- LOCK (cs_feeEstimator );
551+ LOCK (m_cs_fee_estimator );
552552 unsigned int txHeight = entry.GetHeight ();
553553 uint256 hash = entry.GetTx ().GetHash ();
554554 if (mapMemPoolTxs.count (hash)) {
@@ -615,7 +615,7 @@ bool CBlockPolicyEstimator::processBlockTx(unsigned int nBlockHeight, const CTxM
615615void CBlockPolicyEstimator::processBlock (unsigned int nBlockHeight,
616616 std::vector<const CTxMemPoolEntry*>& entries)
617617{
618- LOCK (cs_feeEstimator );
618+ LOCK (m_cs_fee_estimator );
619619 if (nBlockHeight <= nBestSeenHeight) {
620620 // Ignore side chains and re-orgs; assuming they are random
621621 // they don't affect the estimate.
@@ -693,7 +693,7 @@ CFeeRate CBlockPolicyEstimator::estimateRawFee(int confTarget, double successThr
693693 }
694694 }
695695
696- LOCK (cs_feeEstimator );
696+ LOCK (m_cs_fee_estimator );
697697 // Return failure if trying to analyze a target we're not tracking
698698 if (confTarget <= 0 || (unsigned int )confTarget > stats->GetMaxConfirms ())
699699 return CFeeRate (0 );
@@ -819,7 +819,7 @@ double CBlockPolicyEstimator::estimateConservativeFee(unsigned int doubleTarget,
819819 */
820820CFeeRate CBlockPolicyEstimator::estimateSmartFee (int confTarget, FeeCalculation *feeCalc, bool conservative) const
821821{
822- LOCK (cs_feeEstimator );
822+ LOCK (m_cs_fee_estimator );
823823
824824 if (feeCalc) {
825825 feeCalc->desiredTarget = confTarget;
@@ -899,7 +899,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, FeeCalculation
899899bool CBlockPolicyEstimator::Write (CAutoFile& fileout) const
900900{
901901 try {
902- LOCK (cs_feeEstimator );
902+ LOCK (m_cs_fee_estimator );
903903 fileout << 149900 ; // version required to read: 0.14.99 or later
904904 fileout << CLIENT_VERSION; // version that wrote the file
905905 fileout << nBestSeenHeight;
@@ -924,7 +924,7 @@ bool CBlockPolicyEstimator::Write(CAutoFile& fileout) const
924924bool CBlockPolicyEstimator::Read (CAutoFile& filein)
925925{
926926 try {
927- LOCK (cs_feeEstimator );
927+ LOCK (m_cs_fee_estimator );
928928 int nVersionRequired, nVersionThatWrote;
929929 filein >> nVersionRequired >> nVersionThatWrote;
930930 if (nVersionRequired > CLIENT_VERSION)
@@ -983,7 +983,7 @@ bool CBlockPolicyEstimator::Read(CAutoFile& filein)
983983
984984void CBlockPolicyEstimator::FlushUnconfirmed () {
985985 int64_t startclear = GetTimeMicros ();
986- LOCK (cs_feeEstimator );
986+ LOCK (m_cs_fee_estimator );
987987 size_t num_entries = mapMemPoolTxs.size ();
988988 // Remove every entry in mapMemPoolTxs
989989 while (!mapMemPoolTxs.empty ()) {
0 commit comments