fixed a bug causing inactive/wrong masternodes to be selected

This commit is contained in:
Evan Duffield 2014-06-13 07:08:48 -07:00
parent bfb4e53d10
commit f9d005f79a
2 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@
#define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 9 #define CLIENT_VERSION_MINOR 9
#define CLIENT_VERSION_REVISION 10 #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 // Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true #define CLIENT_VERSION_IS_RELEASE true

View File

@ -5798,7 +5798,10 @@ int CDarkSendPool::GetCurrentMasterNode(int mod)
BOOST_FOREACH(CMasterNode mn, darkSendMasterNodes) { BOOST_FOREACH(CMasterNode mn, darkSendMasterNodes) {
mn.Check(); mn.Check();
if(!mn.IsEnabled()) continue; if(!mn.IsEnabled()) {
i++;
continue;
}
uint256 n = mn.CalculateScore(mod); uint256 n = mn.CalculateScore(mod);
unsigned int n2 = 0; unsigned int n2 = 0;