diff --git a/src/governance.cpp b/src/governance.cpp index 35a267372..c7fad7bc8 100644 --- a/src/governance.cpp +++ b/src/governance.cpp @@ -996,9 +996,12 @@ void CGovernanceManager::RequestGovernanceObjectVotes(const std::vector& // Testnet is ~40 times smaller in masternode count, but only ~1000 masternodes usually vote, // so 1 obj on mainnet == ~10 objs or ~1000 votes on testnet. However we want to test a higher // number of votes to make sure it's robust enough, so aim at 2000 votes per masternode per request. - // On mainnet we have 4K+ masternodes, so nMaxObjRequestsPerNode always evaluates to `1`. + // On mainnet nMaxObjRequestsPerNode is always set to 1. + int nMaxObjRequestsPerNode = 1; size_t nProjectedVotes = 2000; - int nMaxObjRequestsPerNode = std::max(1, int(nProjectedVotes / mnodeman.size())); + if(Params().NetworkIDString() != CBaseChainParams::MAIN) { + nMaxObjRequestsPerNode = std::max(1, int(nProjectedVotes / std::max(1, mnodeman.size()))); + } std::vector vpGovObjsTmp; std::vector vpGovObjsTriggersTmp;