From bddcc2f507295bb141791d33ef81f5c8d7ff76f0 Mon Sep 17 00:00:00 2001 From: jouzo Date: Tue, 6 Dec 2022 10:27:03 +0100 Subject: [PATCH] Fix ForEachCycleProp returning early --- src/validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation.cpp b/src/validation.cpp index e7616fe88e..a0a6a0e103 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4208,7 +4208,7 @@ void CChainState::ProcessProposalEvents(const CBlockIndex* pindex, CCustomCSView std::set activeMasternodes; cache.ForEachCycleProp([&](CPropId const& propId, CPropObject const& prop) { - if (prop.status != CPropStatusType::Voting) return false; + if (prop.status != CPropStatusType::Voting) return true; if (activeMasternodes.empty()) { cache.ForEachMasternode([&](uint256 const & mnId, CMasternode node) {