From b9cec7f0a1e089cd77bb2fa1c2b54e93442e594c Mon Sep 17 00:00:00 2001 From: Suhas Daftuar Date: Sun, 15 Oct 2023 06:12:22 -0400 Subject: [PATCH] Make removeConflicts private --- src/txmempool.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/txmempool.h b/src/txmempool.h index 40f5ffeba8f..cdf9bcc9f19 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -320,6 +320,10 @@ private: return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), it->GetFee(), it->GetTxSize(), it->GetModifiedFee() - it->GetFee()}; } + // Helper to remove all transactions that conflict with a given + // transaction (used for transactions appearing in a block). + void removeConflicts(const CTransaction& tx) EXCLUSIVE_LOCKS_REQUIRED(cs); + public: indirectmap mapNextTx GUARDED_BY(cs); std::map mapDeltas GUARDED_BY(cs); @@ -352,7 +356,6 @@ public: * and updates an entry's LockPoints. * */ void removeForReorg(CChain& chain, std::function filter_final_and_mature) EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main); - void removeConflicts(const CTransaction& tx) EXCLUSIVE_LOCKS_REQUIRED(cs); void removeForBlock(const std::vector& vtx, unsigned int nBlockHeight) EXCLUSIVE_LOCKS_REQUIRED(cs); bool CompareMiningScoreWithTopology(const Wtxid& hasha, const Wtxid& hashb) const;