@@ -134,7 +134,7 @@ class MasternodeMetaStore
134134
135135public:
136136 template <typename Stream>
137- void Serialize (Stream &s) const LOCKS_EXCLUDED( cs)
137+ void Serialize (Stream &s) const EXCLUSIVE_LOCKS_REQUIRED(! cs)
138138 {
139139 LOCK (cs);
140140 std::vector<CMasternodeMetaInfo> tmpMetaInfo;
@@ -145,7 +145,7 @@ class MasternodeMetaStore
145145 }
146146
147147 template <typename Stream>
148- void Unserialize (Stream &s) LOCKS_EXCLUDED( cs)
148+ void Unserialize (Stream &s) EXCLUSIVE_LOCKS_REQUIRED(! cs)
149149 {
150150 Clear ();
151151
@@ -163,14 +163,14 @@ class MasternodeMetaStore
163163 }
164164 }
165165
166- void Clear () LOCKS_EXCLUDED( cs)
166+ void Clear () EXCLUSIVE_LOCKS_REQUIRED(! cs)
167167 {
168168 LOCK (cs);
169169
170170 metaInfos.clear ();
171171 }
172172
173- std::string ToString () const LOCKS_EXCLUDED( cs);
173+ std::string ToString () const EXCLUSIVE_LOCKS_REQUIRED(! cs);
174174};
175175
176176/* *
@@ -233,7 +233,7 @@ class CMasternodeMetaMan : public MasternodeMetaStore
233233
234234 bool IsValid () const { return is_valid; }
235235
236- CMasternodeMetaInfoPtr GetMetaInfo (const uint256& proTxHash, bool fCreate = true ) LOCKS_EXCLUDED( cs);
236+ CMasternodeMetaInfoPtr GetMetaInfo (const uint256& proTxHash, bool fCreate = true ) EXCLUSIVE_LOCKS_REQUIRED(! cs);
237237
238238 int64_t GetDsqCount () const { return nDsqCount; }
239239 int64_t GetDsqThreshold (const uint256& proTxHash, int nMnCount);
@@ -242,13 +242,13 @@ class CMasternodeMetaMan : public MasternodeMetaStore
242242 void DisallowMixing (const uint256& proTxHash);
243243
244244 bool AddGovernanceVote (const uint256& proTxHash, const uint256& nGovernanceObjectHash);
245- void RemoveGovernanceObject (const uint256& nGovernanceObjectHash) LOCKS_EXCLUDED( cs);
245+ void RemoveGovernanceObject (const uint256& nGovernanceObjectHash) EXCLUSIVE_LOCKS_REQUIRED(! cs);
246246
247- std::vector<uint256> GetAndClearDirtyGovernanceObjectHashes () LOCKS_EXCLUDED( cs);
247+ std::vector<uint256> GetAndClearDirtyGovernanceObjectHashes () EXCLUSIVE_LOCKS_REQUIRED(! cs);
248248
249- bool AlreadyHavePlatformBan (const uint256& inv_hash) const LOCKS_EXCLUDED( cs);
250- std::optional<PlatformBanMessage> GetPlatformBan (const uint256& inv_hash) const LOCKS_EXCLUDED( cs);
251- void RememberPlatformBan (const uint256& inv_hash, PlatformBanMessage&& msg) LOCKS_EXCLUDED( cs);
249+ bool AlreadyHavePlatformBan (const uint256& inv_hash) const EXCLUSIVE_LOCKS_REQUIRED(! cs);
250+ std::optional<PlatformBanMessage> GetPlatformBan (const uint256& inv_hash) const EXCLUSIVE_LOCKS_REQUIRED(! cs);
251+ void RememberPlatformBan (const uint256& inv_hash, PlatformBanMessage&& msg) EXCLUSIVE_LOCKS_REQUIRED(! cs);
252252};
253253
254254#endif // BITCOIN_MASTERNODE_META_H
0 commit comments