From f9d005f79ac391f9090c8d00cca61c1d4b33da0d Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Fri, 13 Jun 2014 07:08:48 -0700 Subject: [PATCH] fixed a bug causing inactive/wrong masternodes to be selected --- src/clientversion.h | 2 +- src/main.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/clientversion.h b/src/clientversion.h index ab42e3a734..da4e0173e9 100644 --- a/src/clientversion.h +++ b/src/clientversion.h @@ -9,7 +9,7 @@ #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 9 #define CLIENT_VERSION_REVISION 10 -#define CLIENT_VERSION_BUILD 0 +#define CLIENT_VERSION_BUILD 1 // Set to true for release, false for prerelease or test build #define CLIENT_VERSION_IS_RELEASE true diff --git a/src/main.cpp b/src/main.cpp index 1cebe96005..6f18b5d183 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5798,7 +5798,10 @@ int CDarkSendPool::GetCurrentMasterNode(int mod) BOOST_FOREACH(CMasterNode mn, darkSendMasterNodes) { mn.Check(); - if(!mn.IsEnabled()) continue; + if(!mn.IsEnabled()) { + i++; + continue; + } uint256 n = mn.CalculateScore(mod); unsigned int n2 = 0;