Skip to content

Commit

Permalink
[doc] correct comment about ATMPW
Browse files Browse the repository at this point in the history
ATMPW stands for AcceptToMemoryPoolWorker, which was removed in bitcoin#16400.
  • Loading branch information
glozow committed Apr 1, 2021
1 parent ad27398 commit 268965d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ 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;
// Remove coins that were not present in the coins cache before MemPoolAccept;
// 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`).
Expand Down

0 comments on commit 268965d

Please sign in to comment.