Fix comment to reference cluster limits, not chain limits
What changed, and why it matters
This commit changes a single word in a code comment, replacing 'chain' with 'cluster count' to accurately describe what the following code checks. It does not alter any program logic, behavior, or security properties.
No action required; this is a non-functional documentation fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is a comment-only edit in src/txmempool.cpp within CTxMemPool::CheckPolicyLimits. The comment now correctly states that the ChangeSet interface is used to check whether ‘cluster count limits’ (rather than ‘chain limits’) would be violated. No executable code was modified.
Changed components
src/txmempool.cpp comment in CTxMemPool::CheckPolicyLimitsInspect captured patch +1 / −1
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index a68975b2..7f315a3b 100644
--- a/src/txmempool.cpp
+++ b/src/txmempool.cpp
@@ -783,7 +783,7 @@ void CTxMemPool::RemoveStaged(setEntries &stage, MemPoolRemovalReason reason) {
bool CTxMemPool::CheckPolicyLimits(const CTransactionRef& tx)
{
LOCK(cs);
- // Use ChangeSet interface to check whether the chain
+ // Use ChangeSet interface to check whether the cluster count
// limits would be violated. Note that the changeset will be destroyed
// when it goes out of scope.
auto changeset = GetChangeSet();
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.