@@ -322,17 +322,26 @@ class CGovernanceManager : public GovernanceStore, public GovernanceSignerParent
322322
323323 // Thread-safe accessors
324324 bool GetBestSuperblock (const CDeterministicMNList& tip_mn_list, CSuperblock_sptr& pSuperblockRet,
325- int nBlockHeight) override EXCLUSIVE_LOCKS_REQUIRED(!cs);
326- bool HaveObjectForHash (const uint256& nHash) const ;
327- bool HaveVoteForHash (const uint256& nHash) const ;
328- bool SerializeObjectForHash (const uint256& nHash, CDataStream& ss) const ;
329- bool SerializeVoteForHash (const uint256& nHash, CDataStream& ss) const ;
330- CGovernanceObject* FindGovernanceObject (const uint256& nHash) override EXCLUSIVE_LOCKS_REQUIRED(!cs);
331- int GetVoteCount () const ;
332- void AddPostponedObject (const CGovernanceObject& govobj);
325+ int nBlockHeight) override
326+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
327+ bool HaveObjectForHash (const uint256& nHash) const
328+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
329+ bool HaveVoteForHash (const uint256& nHash) const
330+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
331+ bool SerializeObjectForHash (const uint256& nHash, CDataStream& ss) const
332+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
333+ bool SerializeVoteForHash (const uint256& nHash, CDataStream& ss) const
334+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
335+ CGovernanceObject* FindGovernanceObject (const uint256& nHash) override
336+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
337+ int GetVoteCount () const
338+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
339+ void AddPostponedObject (const CGovernanceObject& govobj)
340+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
333341
334342 // Thread-safe accessors for trigger management
335- std::vector<std::shared_ptr<CSuperblock>> GetActiveTriggers () const override EXCLUSIVE_LOCKS_REQUIRED(!cs);
343+ std::vector<std::shared_ptr<CSuperblock>> GetActiveTriggers () const override
344+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
336345
337346 void MasternodeRateUpdate (const CGovernanceObject& govobj);
338347
@@ -390,10 +399,15 @@ class CGovernanceManager : public GovernanceStore, public GovernanceSignerParent
390399
391400private:
392401 // Internal counterparts to "Thread-safe accessors"
402+ void AddPostponedObjectInternal (const CGovernanceObject& govobj)
403+ EXCLUSIVE_LOCKS_REQUIRED(cs);
393404 bool GetBestSuperblockInternal (const CDeterministicMNList& tip_mn_list, CSuperblock_sptr& pSuperblockRet,
394- int nBlockHeight) EXCLUSIVE_LOCKS_REQUIRED(cs);
395- CGovernanceObject* FindGovernanceObjectInternal (const uint256& nHash) EXCLUSIVE_LOCKS_REQUIRED(cs);
396- std::vector<std::shared_ptr<CSuperblock>> GetActiveTriggersInternal () const EXCLUSIVE_LOCKS_REQUIRED(cs);
405+ int nBlockHeight)
406+ EXCLUSIVE_LOCKS_REQUIRED(cs);
407+ CGovernanceObject* FindGovernanceObjectInternal (const uint256& nHash)
408+ EXCLUSIVE_LOCKS_REQUIRED(cs);
409+ std::vector<std::shared_ptr<CSuperblock>> GetActiveTriggersInternal () const
410+ EXCLUSIVE_LOCKS_REQUIRED(cs);
397411
398412 void ExecuteBestSuperblock (const CDeterministicMNList& tip_mn_list, int nBlockHeight);
399413
0 commit comments