From 4083950dddd328100db527d7e94de9009e2d7a62 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 14ab5c3fad2..56cb8132222 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4197,7 +4197,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) {