@@ -177,11 +177,10 @@ class GovernanceStore
177177 static constexpr int MAX_CACHE_SIZE = 1000000 ;
178178 static const std::string SERIALIZATION_VERSION_STRING;
179179
180- public :
180+ protected :
181181 // critical section to protect the inner data structures
182182 mutable RecursiveMutex cs;
183183
184- protected:
185184 // keep track of the scanning errors
186185 std::map<uint256, CGovernanceObject> mapObjects GUARDED_BY (cs);
187186 // mapErasedGovernanceObjects contains key-value pairs, where
@@ -298,7 +297,6 @@ class CGovernanceManager : public GovernanceStore, public GovernanceSignerParent
298297 [[nodiscard]] MessageProcessingResult ProcessMessage (CNode& peer, CConnman& connman, std::string_view msg_type,
299298 CDataStream& vRecv) EXCLUSIVE_LOCKS_REQUIRED(!cs_relay);
300299
301- const CGovernanceObject* FindConstGovernanceObject (const uint256& nHash) const EXCLUSIVE_LOCKS_REQUIRED(cs);
302300 CGovernanceObject* FindGovernanceObjectByDataHash (const uint256& nDataHash) override EXCLUSIVE_LOCKS_REQUIRED(!cs);
303301
304302 // These commands are only used in RPC
@@ -339,6 +337,8 @@ class CGovernanceManager : public GovernanceStore, public GovernanceSignerParent
339337 void AddPostponedObject (const CGovernanceObject& govobj)
340338 EXCLUSIVE_LOCKS_REQUIRED(!cs);
341339
340+ const CGovernanceObject* FindConstGovernanceObject (const uint256& nHash) const EXCLUSIVE_LOCKS_REQUIRED(!cs);
341+
342342 // Thread-safe accessors for trigger management
343343 std::vector<std::shared_ptr<CSuperblock>> GetActiveTriggers () const override
344344 EXCLUSIVE_LOCKS_REQUIRED(!cs);
@@ -409,6 +409,8 @@ class CGovernanceManager : public GovernanceStore, public GovernanceSignerParent
409409 std::vector<std::shared_ptr<CSuperblock>> GetActiveTriggersInternal () const
410410 EXCLUSIVE_LOCKS_REQUIRED(cs);
411411
412+ const CGovernanceObject* FindConstGovernanceObjectInternal (const uint256& nHash) const EXCLUSIVE_LOCKS_REQUIRED(cs);
413+
412414 void ExecuteBestSuperblock (const CDeterministicMNList& tip_mn_list, int nBlockHeight);
413415
414416 void RequestGovernanceObject (CNode* pfrom, const uint256& nHash, CConnman& connman, bool fUseFilter = false ) const ;
0 commit comments