@@ -451,7 +451,7 @@ class CTxMemPool
451
451
mutable bool blockSinceLastRollingFeeBump;
452
452
mutable double rollingMinimumFeeRate; // !< minimum fee to get into the pool, decreases exponentially
453
453
454
- void trackPackageRemoved (const CFeeRate& rate);
454
+ void trackPackageRemoved (const CFeeRate& rate) EXCLUSIVE_LOCKS_REQUIRED(cs) ;
455
455
456
456
public:
457
457
@@ -512,7 +512,7 @@ class CTxMemPool
512
512
void UpdateParent (txiter entry, txiter parent, bool add);
513
513
void UpdateChild (txiter entry, txiter child, bool add);
514
514
515
- std::vector<indexed_transaction_set::const_iterator> GetSortedDepthAndScore () const ;
515
+ std::vector<indexed_transaction_set::const_iterator> GetSortedDepthAndScore () const EXCLUSIVE_LOCKS_REQUIRED(cs) ;
516
516
517
517
public:
518
518
indirectmap<COutPoint, const CTransaction*> mapNextTx;
@@ -572,7 +572,7 @@ class CTxMemPool
572
572
* Set updateDescendants to true when removing a tx that was in a block, so
573
573
* that any in-mempool descendants have their ancestor state updated.
574
574
*/
575
- void RemoveStaged (setEntries &stage, bool updateDescendants, MemPoolRemovalReason reason = MemPoolRemovalReason::UNKNOWN);
575
+ void RemoveStaged (setEntries &stage, bool updateDescendants, MemPoolRemovalReason reason = MemPoolRemovalReason::UNKNOWN) EXCLUSIVE_LOCKS_REQUIRED(cs) ;
576
576
577
577
/* * When adding transactions from a disconnected block back to the mempool,
578
578
* new mempool entries may have children in the mempool (which is generally
0 commit comments