@@ -192,7 +192,8 @@ class CGovernanceObject
192192 void UpdateLocalValidity (const CDeterministicMNList& tip_mn_list, const ChainstateManager& chainman)
193193 EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
194194
195- void UpdateSentinelVariables (const CDeterministicMNList& tip_mn_list);
195+ void UpdateSentinelVariables (const CDeterministicMNList& tip_mn_list)
196+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
196197
197198 void PrepareDeletion (int64_t nDeletionTime_) EXCLUSIVE_LOCKS_REQUIRED(!cs)
198199 {
@@ -213,15 +214,22 @@ class CGovernanceObject
213214
214215 // GET VOTE COUNT FOR SIGNAL
215216
216- int CountMatchingVotes (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn, vote_outcome_enum_t eVoteOutcomeIn) const ;
217+ int CountMatchingVotes (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn, vote_outcome_enum_t eVoteOutcomeIn) const
218+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
217219
218- int GetAbsoluteYesCount (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn) const ;
219- int GetAbsoluteNoCount (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn) const ;
220- int GetYesCount (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn) const ;
221- int GetNoCount (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn) const ;
222- int GetAbstainCount (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn) const ;
220+ int GetAbsoluteYesCount (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn) const
221+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
222+ int GetAbsoluteNoCount (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn) const
223+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
224+ int GetYesCount (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn) const
225+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
226+ int GetNoCount (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn) const
227+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
228+ int GetAbstainCount (const CDeterministicMNList& tip_mn_list, vote_signal_enum_t eVoteSignalIn) const
229+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
223230
224- bool GetCurrentMNVotes (const COutPoint& mnCollateralOutpoint, vote_rec_t & voteRecord) const ;
231+ bool GetCurrentMNVotes (const COutPoint& mnCollateralOutpoint, vote_rec_t & voteRecord) const
232+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
225233
226234 // FUNCTIONS FOR DEALING WITH DATA STRING
227235
@@ -261,16 +269,19 @@ class CGovernanceObject
261269 void GetData (UniValue& objResult) const ;
262270
263271 bool ProcessVote (CMasternodeMetaMan& mn_metaman, CGovernanceManager& govman, const CDeterministicMNList& tip_mn_list,
264- const CGovernanceVote& vote, CGovernanceException& exception);
272+ const CGovernanceVote& vote, CGovernanceException& exception)
273+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
265274
266275 // / Called when MN's which have voted on this object have been removed
267- void ClearMasternodeVotes (const CDeterministicMNList& tip_mn_list);
276+ void ClearMasternodeVotes (const CDeterministicMNList& tip_mn_list)
277+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
268278
269279 // Revalidate all votes from this MN and delete them if validation fails.
270280 // This is the case for DIP3 MNs that changed voting or operator keys and
271281 // also for MNs that were removed from the list completely.
272282 // Returns deleted vote hashes.
273- std::set<uint256> RemoveInvalidVotes (const CDeterministicMNList& tip_mn_list, const COutPoint& mnOutpoint);
283+ std::set<uint256> RemoveInvalidVotes (const CDeterministicMNList& tip_mn_list, const COutPoint& mnOutpoint)
284+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
274285};
275286
276287#endif // BITCOIN_GOVERNANCE_OBJECT_H
0 commit comments