Skip to content

Commit 2b30f4d

Browse files
committed
Make RemoveStaged() private
1 parent 1882919 commit 2b30f4d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/txmempool.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -510,15 +510,6 @@ class CTxMemPool
510510
* don't actually exist in the mempool, returns an empty vector. */
511511
std::vector<txiter> GetIterVec(const std::vector<uint256>& txids) const EXCLUSIVE_LOCKS_REQUIRED(cs);
512512

513-
/** Remove a set of transactions from the mempool.
514-
* If a transaction is in this set, then all in-mempool descendants must
515-
* also be in the set, unless this transaction is being removed for being
516-
* in a block.
517-
* Set updateDescendants to true when removing a tx that was in a block, so
518-
* that any in-mempool descendants have their ancestor state updated.
519-
*/
520-
void RemoveStaged(setEntries& stage, bool updateDescendants, MemPoolRemovalReason reason) EXCLUSIVE_LOCKS_REQUIRED(cs);
521-
522513
/** UpdateTransactionsFromBlock is called when adding transactions from a
523514
* disconnected block back to the mempool, new mempool entries may have
524515
* children in the mempool (which is generally not the case when otherwise
@@ -738,6 +729,15 @@ class CTxMemPool
738729
std::optional<std::string> CheckConflictTopology(const setEntries& direct_conflicts);
739730

740731
private:
732+
/** Remove a set of transactions from the mempool.
733+
* If a transaction is in this set, then all in-mempool descendants must
734+
* also be in the set, unless this transaction is being removed for being
735+
* in a block.
736+
* Set updateDescendants to true when removing a tx that was in a block, so
737+
* that any in-mempool descendants have their ancestor state updated.
738+
*/
739+
void RemoveStaged(setEntries& stage, bool updateDescendants, MemPoolRemovalReason reason) EXCLUSIVE_LOCKS_REQUIRED(cs);
740+
741741
/** UpdateForDescendants is used by UpdateTransactionsFromBlock to update
742742
* the descendants for a single transaction that has been added to the
743743
* mempool but may have child transactions in the mempool, eg during a

0 commit comments

Comments
 (0)