@@ -60,11 +60,6 @@ class CTxMemPool;
60
60
* (nCountWithDescendants, nSizeWithDescendants, and nModFeesWithDescendants) for
61
61
* all ancestors of the newly added transaction.
62
62
*
63
- * If updating the descendant state is skipped, we can mark the entry as
64
- * "dirty", and set nSizeWithDescendants/nModFeesWithDescendants to equal nTxSize/
65
- * nFee+feeDelta. (This can potentially happen during a reorg, where we limit the
66
- * amount of work we're willing to do to avoid consuming too much CPU.)
67
- *
68
63
*/
69
64
70
65
class CTxMemPoolEntry
@@ -83,9 +78,7 @@ class CTxMemPoolEntry
83
78
84
79
// Information about descendants of this transaction that are in the
85
80
// mempool; if we remove this transaction we must remove all of these
86
- // descendants as well. if nCountWithDescendants is 0, treat this entry as
87
- // dirty, and nSizeWithDescendants and nModFeesWithDescendants will not be
88
- // correct.
81
+ // descendants as well.
89
82
uint64_t nCountWithDescendants; // !< number of descendant transactions
90
83
uint64_t nSizeWithDescendants; // !< ... and size
91
84
CAmount nModFeesWithDescendants; // !< ... and total fees (all including us)
@@ -116,7 +109,7 @@ class CTxMemPoolEntry
116
109
size_t DynamicMemoryUsage () const { return nUsageSize; }
117
110
const LockPoints& GetLockPoints () const { return lockPoints; }
118
111
119
- // Adjusts the descendant state, if this entry is not dirty .
112
+ // Adjusts the descendant state.
120
113
void UpdateDescendantState (int64_t modifySize, CAmount modifyFee, int64_t modifyCount);
121
114
// Adjusts the ancestor state
122
115
void UpdateAncestorState (int64_t modifySize, CAmount modifyFee, int64_t modifyCount, int modifySigOps);
@@ -399,14 +392,6 @@ enum class MemPoolRemovalReason {
399
392
* CalculateMemPoolAncestors() takes configurable limits that are designed to
400
393
* prevent these calculations from being too CPU intensive.
401
394
*
402
- * Adding transactions from a disconnected block can be very time consuming,
403
- * because we don't have a way to limit the number of in-mempool descendants.
404
- * To bound CPU processing, we limit the amount of work we're willing to do
405
- * to properly update the descendant information for a tx being added from
406
- * a disconnected block. If we would exceed the limit, then we instead mark
407
- * the entry as "dirty", and set the feerate for sorting purposes to be equal
408
- * the feerate of the transaction without any descendants.
409
- *
410
395
*/
411
396
class CTxMemPool
412
397
{
0 commit comments