From 4eca20d6f7d850492d331d89d1cdd77abb3c70c1 Mon Sep 17 00:00:00 2001 From: glozow Date: Tue, 23 Mar 2021 13:32:03 -0700 Subject: [PATCH] [doc] correct comment about ATMPW ATMPW stands for AcceptToMemoryPoolWorker, which was removed in #16400. --- src/validation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index 7f1238f795..d0cb81b1f1 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1100,9 +1100,9 @@ static MempoolAcceptResult AcceptToMemoryPoolWithTime(const CChainParams& chainp assert(std::addressof(::ChainstateActive()) == std::addressof(active_chainstate)); const MempoolAcceptResult result = MemPoolAccept(pool, active_chainstate).AcceptSingleTransaction(tx, args); if (result.m_result_type != MempoolAcceptResult::ResultType::VALID) { - // Remove coins that were not present in the coins cache before calling ATMPW; - // this is to prevent memory DoS in case we receive a large number of - // invalid transactions that attempt to overrun the in-memory coins cache + // Remove coins that were not present in the coins cache before calling + // AcceptSingleTransaction(); this is to prevent memory DoS in case we receive a large + // number of invalid transactions that attempt to overrun the in-memory coins cache // (`CCoinsViewCache::cacheCoins`). for (const COutPoint& hashTx : coins_to_uncache)