Skip to content

Commit

Permalink
fix mnw limits
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Sep 4, 2015
1 parent 6cf5a25 commit 7cede48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/masternode-payments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ void CMasternodePayments::ProcessMessageMasternodePayments(CNode* pfrom, std::st
return;
}

int nFirstBlock = chainActive.Tip()->nHeight - (mnodeman.CountEnabled()*2);
int nFirstBlock = chainActive.Tip()->nHeight - (mnodeman.CountEnabled()*1.25);
if(winner.nBlockHeight < nFirstBlock || winner.nBlockHeight > chainActive.Tip()->nHeight+20){
LogPrintf("mnw - winner out of range - FirstBlock %d Height %d bestHeight %d\n", nFirstBlock, winner.nBlockHeight, chainActive.Tip()->nHeight);
LogPrint("mnpayments", "mnw - winner out of range - FirstBlock %d Height %d bestHeight %d\n", nFirstBlock, winner.nBlockHeight, chainActive.Tip()->nHeight);
return;
}

Expand Down Expand Up @@ -779,7 +779,7 @@ void CMasternodePayments::Sync(CNode* node, int nCountNeeded)

if(chainActive.Tip() == NULL) return;

int nCount = (mnodeman.CountEnabled()*2);
int nCount = (mnodeman.CountEnabled()*1.25);
if(nCountNeeded > nCount) nCountNeeded = nCount;

int nInvCount = 0;
Expand Down

0 comments on commit 7cede48

Please sign in to comment.