@@ -577,8 +577,8 @@ class CTxMemPool
577
577
// Note that addUnchecked is ONLY called from ATMP outside of tests
578
578
// and any other callers may break wallet's in-mempool tracking (due to
579
579
// lack of CValidationInterface::TransactionAddedToMempool callbacks).
580
- void addUnchecked (const CTxMemPoolEntry& entry, bool validFeeEstimate = true ) EXCLUSIVE_LOCKS_REQUIRED(cs);
581
- void addUnchecked (const CTxMemPoolEntry& entry, setEntries& setAncestors, bool validFeeEstimate = true ) EXCLUSIVE_LOCKS_REQUIRED(cs);
580
+ void addUnchecked (const CTxMemPoolEntry& entry, bool validFeeEstimate = true ) EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main );
581
+ void addUnchecked (const CTxMemPoolEntry& entry, setEntries& setAncestors, bool validFeeEstimate = true ) EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main );
582
582
583
583
void removeRecursive (const CTransaction &tx, MemPoolRemovalReason reason = MemPoolRemovalReason::UNKNOWN);
584
584
void removeForReorg (const CCoinsViewCache *pcoins, unsigned int nMemPoolHeight, int flags) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
@@ -630,7 +630,7 @@ class CTxMemPool
630
630
* for). Note: vHashesToUpdate should be the set of transactions from the
631
631
* disconnected block that have been accepted back into the mempool.
632
632
*/
633
- void UpdateTransactionsFromBlock (const std::vector<uint256> & vHashesToUpdate);
633
+ void UpdateTransactionsFromBlock (const std::vector<uint256>& vHashesToUpdate) EXCLUSIVE_LOCKS_REQUIRED(cs_main );
634
634
635
635
/* * Try to calculate all in-mempool ancestors of entry.
636
636
* (these are all calculated including the tx itself)
@@ -672,7 +672,7 @@ class CTxMemPool
672
672
*/
673
673
void GetTransactionAncestry (const uint256& txid, size_t & ancestors, size_t & descendants) const ;
674
674
675
- unsigned long size ()
675
+ unsigned long size () const
676
676
{
677
677
LOCK (cs);
678
678
return mapTx.size ();
0 commit comments