do not stake without masternodes to pay
@@ -635,6 +635,14 @@ void StakeMiner(CWallet *pwallet)
}
}
+ if (vecMasternodes.size() == 0 || (mnCount > 0 && vecMasternodes.size() < mnCount))
+ {
+ vnThreadsRunning[THREAD_STAKE_MINER]--;
+ MilliSleep(10000);
+ vnThreadsRunning[THREAD_STAKE_MINER]++;
+ continue;
+ }
+
//
// Create new block
//
