doc: mempool: fix removeUnchecked incorrect comment
- CTxMemPool::removeUnchecked description comment is stale and incorrect after cluster mempool. This commit fixes the issue by deleting the stale comment and describing only the implicit behaviour triggered by the method.
This commit is contained in:
1 file changed
+1
-8
+1
-8
@@ -589,14 +589,7 @@ private:
|
|||||||
/* Helper for the public removeRecursive() */
|
/* Helper for the public removeRecursive() */
|
||||||
void removeRecursive(txiter to_remove, MemPoolRemovalReason reason) EXCLUSIVE_LOCKS_REQUIRED(cs);
|
void removeRecursive(txiter to_remove, MemPoolRemovalReason reason) EXCLUSIVE_LOCKS_REQUIRED(cs);
|
||||||
|
|
||||||
/** Before calling removeUnchecked for a given transaction,
|
/* Removal from the mempool also triggers removal of the entry's Ref from txgraph. */
|
||||||
* UpdateForRemoveFromMempool must be called on the entire (dependent) set
|
|
||||||
* of transactions being removed at the same time. We use each
|
|
||||||
* CTxMemPoolEntry's m_parents in order to walk ancestors of a
|
|
||||||
* given transaction that is removed, so we can't remove intermediate
|
|
||||||
* transactions in a chain before we've updated all the state for the
|
|
||||||
* removal.
|
|
||||||
*/
|
|
||||||
void removeUnchecked(txiter entry, MemPoolRemovalReason reason) EXCLUSIVE_LOCKS_REQUIRED(cs);
|
void removeUnchecked(txiter entry, MemPoolRemovalReason reason) EXCLUSIVE_LOCKS_REQUIRED(cs);
|
||||||
public:
|
public:
|
||||||
/** visited marks a CTxMemPoolEntry as having been traversed
|
/** visited marks a CTxMemPoolEntry as having been traversed
|
||||||
|
|||||||
Reference in new issue
Block a user