style: add semicolumn that the end to ENTER/LEAVE CRITICAL SECTION

It is not required but it looks alien without it
This commit is contained in:
Konstantin Akimov 2024-02-23 16:47:14 +07:00
parent c23c25d00b
commit f36bb1f085
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -1048,13 +1048,13 @@ bool CGovernanceManager::MasternodeRateCheck(const CGovernanceObject& govobj, bo
bool CGovernanceManager::ProcessVote(CNode* pfrom, const CGovernanceVote& vote, CGovernanceException& exception, CConnman& connman)
{
ENTER_CRITICAL_SECTION(cs)
ENTER_CRITICAL_SECTION(cs);
uint256 nHashVote = vote.GetHash();
uint256 nHashGovobj = vote.GetParentHash();
if (cmapVoteToObject.HasKey(nHashVote)) {
LogPrint(BCLog::GOBJECT, "CGovernanceObject::ProcessVote -- skipping known valid vote %s for object %s\n", nHashVote.ToString(), nHashGovobj.ToString());
LEAVE_CRITICAL_SECTION(cs)
LEAVE_CRITICAL_SECTION(cs);
return false;
}
@ -1065,7 +1065,7 @@ bool CGovernanceManager::ProcessVote(CNode* pfrom, const CGovernanceVote& vote,
<< ", governance object hash = " << nHashGovobj.ToString();
LogPrint(BCLog::GOBJECT, "%s\n", ostr.str());
exception = CGovernanceException(ostr.str(), GOVERNANCE_EXCEPTION_PERMANENT_ERROR, 20);
LEAVE_CRITICAL_SECTION(cs)
LEAVE_CRITICAL_SECTION(cs);
return false;
}
@ -1076,14 +1076,14 @@ bool CGovernanceManager::ProcessVote(CNode* pfrom, const CGovernanceVote& vote,
<< ", MN outpoint = " << vote.GetMasternodeOutpoint().ToStringShort();
exception = CGovernanceException(ostr.str(), GOVERNANCE_EXCEPTION_WARNING);
if (cmmapOrphanVotes.Insert(nHashGovobj, vote_time_pair_t(vote, GetTime<std::chrono::seconds>().count() + GOVERNANCE_ORPHAN_EXPIRATION_TIME))) {
LEAVE_CRITICAL_SECTION(cs)
LEAVE_CRITICAL_SECTION(cs);
RequestGovernanceObject(pfrom, nHashGovobj, connman);
LogPrint(BCLog::GOBJECT, "%s\n", ostr.str());
return false;
}
LogPrint(BCLog::GOBJECT, "%s\n", ostr.str());
LEAVE_CRITICAL_SECTION(cs)
LEAVE_CRITICAL_SECTION(cs);
return false;
}
@ -1091,12 +1091,12 @@ bool CGovernanceManager::ProcessVote(CNode* pfrom, const CGovernanceVote& vote,
if (govobj.IsSetCachedDelete() || govobj.IsSetExpired()) {
LogPrint(BCLog::GOBJECT, "CGovernanceObject::ProcessVote -- ignoring vote for expired or deleted object, hash = %s\n", nHashGovobj.ToString());
LEAVE_CRITICAL_SECTION(cs)
LEAVE_CRITICAL_SECTION(cs);
return false;
}
bool fOk = govobj.ProcessVote(vote, exception) && cmapVoteToObject.Insert(nHashVote, &govobj);
LEAVE_CRITICAL_SECTION(cs)
LEAVE_CRITICAL_SECTION(cs);
return fOk;
}