diff --git a/src/governance.cpp b/src/governance.cpp index 11356a1ecb5b1..cf13d98fb31cd 100644 --- a/src/governance.cpp +++ b/src/governance.cpp @@ -164,10 +164,7 @@ void CGovernanceManager::ProcessMessage(CNode* pfrom, std::string& strCommand, C // UPDATE CACHED VARIABLES FOR THIS OBJECT AND ADD IT TO OUR MANANGED DATA govobj.UpdateSentinelVariables(pCurrentBlockIndex); - if(AddGovernanceObject(govobj)) - { - govobj.Relay(); - } + if(AddGovernanceObject(govobj)) govobj.Relay(); mapSeenGovernanceObjects.insert(make_pair(govobj.GetHash(), SEEN_OBJECT_IS_VALID)); masternodeSync.AddedBudgetItem(govobj.GetHash()); diff --git a/src/governance.h b/src/governance.h index d79a957d420e7..034409a7e013e 100644 --- a/src/governance.h +++ b/src/governance.h @@ -176,11 +176,11 @@ class CGovernanceObject std::string strLocalValidityError; // set via sentinel voting mechanisms - // caching -- one per voting mechanism -- see governance-vote.h for more information - bool fCachedFunding; - bool fCachedValid; - bool fCachedDelete; - bool fCachedEndorsed; + // caching -- one per voting mechanism -- see below for more information + bool fCachedFunding; // true == minimum network support has been reached for this object to be funded (doesn't mean it will for sure though) + bool fCachedValid; // true == minimum network has been reached flagging this object as a valid and understood goverance object (e.g, the serialized data is correct format, etc) + bool fCachedDelete; // true == minimum network support has been reached saying this object should be deleted from the system entirely + bool fCachedEndorsed; // true == minimum network support has been reached flagging this object as endorsed by an elected representative body (e.g. business review board / technecial review board /etc) CGovernanceObject(); CGovernanceObject(uint256 nHashParentIn, int nRevisionIn, std::string strNameIn, int64_t nTime, uint256 nFeeTXHashIn);