@@ -287,8 +287,8 @@ class CGovernanceManager : public GovernanceStore, public GovernanceSignerParent
287287
288288 bool IsValid () const override { return is_valid; }
289289
290- void RelayObject (const CGovernanceObject& obj);
291- void RelayVote (const CGovernanceVote& vote);
290+ void RelayObject (const CGovernanceObject& obj) EXCLUSIVE_LOCKS_REQUIRED(!cs_relay) ;
291+ void RelayVote (const CGovernanceVote& vote) EXCLUSIVE_LOCKS_REQUIRED(!cs_relay) ;
292292
293293 /* *
294294 * This is called by AlreadyHave in net_processing.cpp as part of the inventory
@@ -300,7 +300,8 @@ class CGovernanceManager : public GovernanceStore, public GovernanceSignerParent
300300 [[nodiscard]] MessageProcessingResult SyncSingleObjVotes (CNode& peer, const uint256& nProp, const CBloomFilter& filter, CConnman& connman);
301301 [[nodiscard]] MessageProcessingResult SyncObjects (CNode& peer, CConnman& connman) const ;
302302
303- [[nodiscard]] MessageProcessingResult ProcessMessage (CNode& peer, CConnman& connman, std::string_view msg_type, CDataStream& vRecv);
303+ [[nodiscard]] MessageProcessingResult ProcessMessage (CNode& peer, CConnman& connman, std::string_view msg_type, CDataStream& vRecv)
304+ EXCLUSIVE_LOCKS_REQUIRED(!cs_relay);
304305
305306 void DoMaintenance (CConnman& connman);
306307
@@ -313,13 +314,14 @@ class CGovernanceManager : public GovernanceStore, public GovernanceSignerParent
313314 std::vector<CGovernanceVote> GetCurrentVotes (const uint256& nParentHash, const COutPoint& mnCollateralOutpointFilter) const ;
314315 void GetAllNewerThan (std::vector<CGovernanceObject>& objs, int64_t nMoreThanTime) const ;
315316
316- void AddGovernanceObject (CGovernanceObject& govobj, const CNode* pfrom = nullptr ) override ;
317+ void AddGovernanceObject (CGovernanceObject& govobj, const CNode* pfrom = nullptr ) override
318+ EXCLUSIVE_LOCKS_REQUIRED(!cs_relay);
317319
318320 void CheckAndRemove ();
319321
320322 UniValue ToJson () const ;
321323
322- void UpdatedBlockTip (const CBlockIndex* pindex);
324+ void UpdatedBlockTip (const CBlockIndex* pindex) EXCLUSIVE_LOCKS_REQUIRED(!cs_relay) ;
323325 int64_t GetLastDiffTime () const { return nTimeLastDiff; }
324326 void UpdateLastDiffTime (int64_t nTimeIn) { nTimeLastDiff = nTimeIn; }
325327
@@ -344,9 +346,10 @@ class CGovernanceManager : public GovernanceStore, public GovernanceSignerParent
344346
345347 bool MasternodeRateCheck (const CGovernanceObject& govobj, bool fUpdateFailStatus , bool fForce , bool & fRateCheckBypassed );
346348
347- bool ProcessVoteAndRelay (const CGovernanceVote& vote, CGovernanceException& exception, CConnman& connman) override ;
349+ bool ProcessVoteAndRelay (const CGovernanceVote& vote, CGovernanceException& exception, CConnman& connman) override
350+ EXCLUSIVE_LOCKS_REQUIRED(!cs_relay);
348351
349- void CheckPostponedObjects ();
352+ void CheckPostponedObjects () EXCLUSIVE_LOCKS_REQUIRED(!cs_relay) ;
350353
351354 bool AreRateChecksEnabled () const
352355 {
@@ -413,7 +416,7 @@ class CGovernanceManager : public GovernanceStore, public GovernanceSignerParent
413416 // / Called to indicate a requested object or vote has been received
414417 bool AcceptMessage (const uint256& nHash);
415418
416- void CheckOrphanVotes (CGovernanceObject& govobj);
419+ void CheckOrphanVotes (CGovernanceObject& govobj) EXCLUSIVE_LOCKS_REQUIRED(!cs_relay) ;
417420
418421 void RebuildIndexes ();
419422
0 commit comments