@@ -31,7 +31,7 @@ class CMasternodeMetaInfo
3131public:
3232 uint256 m_protx_hash;
3333
34- // the dsq count from the last dsq broadcast of this node
34+ // ! the dsq count from the last dsq broadcast of this node
3535 int64_t m_last_dsq{0 };
3636 int m_mixing_tx_count{0 };
3737
@@ -62,17 +62,16 @@ class CMasternodeMetaInfo
6262 obj.m_platform_ban_updated );
6363 }
6464
65- UniValue ToJson () const EXCLUSIVE_LOCKS_REQUIRED(!cs) ;
65+ UniValue ToJson () const ;
6666
67- public:
6867 // KEEP TRACK OF EACH GOVERNANCE ITEM IN CASE THIS NODE GOES OFFLINE, SO WE CAN RECALCULATE THEIR STATUS
69- void AddGovernanceVote (const uint256& nGovernanceObjectHash) EXCLUSIVE_LOCKS_REQUIRED(!cs);
70-
71- void RemoveGovernanceObject (const uint256& nGovernanceObjectHash) EXCLUSIVE_LOCKS_REQUIRED(!cs);
68+ void AddGovernanceVote (const uint256& nGovernanceObjectHash);
69+ void RemoveGovernanceObject (const uint256& nGovernanceObjectHash);
7270
7371 void SetLastOutboundAttempt (int64_t t) { lastOutboundAttempt = t; ++outboundAttemptCount; }
7472 void SetLastOutboundSuccess (int64_t t) { lastOutboundSuccess = t; outboundAttemptCount = 0 ; }
75- bool SetPlatformBan (bool is_banned, int height) EXCLUSIVE_LOCKS_REQUIRED(!cs)
73+
74+ bool SetPlatformBan (bool is_banned, int height)
7675 {
7776 if (height < m_platform_ban_updated) {
7877 return false ;
@@ -213,16 +212,16 @@ class CMasternodeMetaMan : public MasternodeMetaStore
213212
214213 bool IsValid () const { return is_valid; }
215214
216- CMasternodeMetaInfo GetInfo (const uint256& proTxHash) EXCLUSIVE_LOCKS_REQUIRED(!cs);
215+ CMasternodeMetaInfo GetInfo (const uint256& proTxHash) const EXCLUSIVE_LOCKS_REQUIRED(!cs);
217216
218217 // We keep track of dsq (mixing queues) count to avoid using same masternodes for mixing too often.
219218 // MN's threshold is calculated as the last dsq count this specific masternode was used in a mixing
220219 // session plus a margin of 20% of masternode count. In other words we expect at least 20% of unique
221220 // masternodes before we ever see a masternode that we know already mixed someone's funds earlier.
222221 bool IsDsqOver (const uint256& protx_hash, int mn_count) const EXCLUSIVE_LOCKS_REQUIRED(!cs);
223222
224- void AllowMixing (const uint256& proTxHash);
225- void DisallowMixing (const uint256& proTxHash);
223+ void AllowMixing (const uint256& proTxHash) EXCLUSIVE_LOCKS_REQUIRED(!cs) ;
224+ void DisallowMixing (const uint256& proTxHash) EXCLUSIVE_LOCKS_REQUIRED(!cs) ;
226225 bool IsValidForMixingTxes (const uint256& protx_hash) const EXCLUSIVE_LOCKS_REQUIRED(!cs);
227226
228227 void AddGovernanceVote (const uint256& proTxHash, const uint256& nGovernanceObjectHash);
0 commit comments