aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglozow <gzhao408@berkeley.edu>2021-03-23 13:32:03 -0700
committerglozow <gzhao408@berkeley.edu>2021-04-01 08:35:34 -0700
commit4eca20d6f7d850492d331d89d1cdd77abb3c70c1 (patch)
tree4f01969300eb2bebb45bc61f0e6b089d7cae45e6
parent8fa74aeb5b96419c7d40b40f8e1e1269509278e2 (diff)
[doc] correct comment about ATMPW
ATMPW stands for AcceptToMemoryPoolWorker, which was removed in #16400.
-rw-r--r--src/validation.cpp6
1 files 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)