increase chance of budget autocheck

This commit is contained in:
Evan Duffield 2015-08-10 14:57:09 -07:00
parent 595e30731a
commit df33377ed0

View File

@ -1698,8 +1698,9 @@ void CFinalizedBudget::AutoCheck()
if(!fMasterNode || fAutoChecked) return;
//do this 1 in 20 blocks -- spread out the voting activity on mainnet
if(Params().NetworkID() == CBaseChainParams::MAIN && rand() % 20 != 0) {
//do this 1 in 4 blocks -- spread out the voting activity on mainnet
// -- this function is only called every sixth block, so this is really 1 in 24 blocks
if(Params().NetworkID() == CBaseChainParams::MAIN && rand() % 4 != 0) {
LogPrintf("CFinalizedBudget::AutoCheck - waiting\n");
return;
}