diff --git a/src/txmempool.h b/src/txmempool.h index ee4f269fac..aba161acd9 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -510,15 +510,6 @@ public: * don't actually exist in the mempool, returns an empty vector. */ std::vector GetIterVec(const std::vector& txids) const EXCLUSIVE_LOCKS_REQUIRED(cs); - /** Remove a set of transactions from the mempool. - * If a transaction is in this set, then all in-mempool descendants must - * also be in the set, unless this transaction is being removed for being - * in a block. - * Set updateDescendants to true when removing a tx that was in a block, so - * that any in-mempool descendants have their ancestor state updated. - */ - void RemoveStaged(setEntries& stage, bool updateDescendants, MemPoolRemovalReason reason) EXCLUSIVE_LOCKS_REQUIRED(cs); - /** UpdateTransactionsFromBlock is called when adding transactions from a * disconnected block back to the mempool, new mempool entries may have * children in the mempool (which is generally not the case when otherwise @@ -738,6 +729,15 @@ public: std::optional CheckConflictTopology(const setEntries& direct_conflicts); private: + /** Remove a set of transactions from the mempool. + * If a transaction is in this set, then all in-mempool descendants must + * also be in the set, unless this transaction is being removed for being + * in a block. + * Set updateDescendants to true when removing a tx that was in a block, so + * that any in-mempool descendants have their ancestor state updated. + */ + void RemoveStaged(setEntries& stage, bool updateDescendants, MemPoolRemovalReason reason) EXCLUSIVE_LOCKS_REQUIRED(cs); + /** UpdateForDescendants is used by UpdateTransactionsFromBlock to update * the descendants for a single transaction that has been added to the * mempool but may have child transactions in the mempool, eg during a