Skip to content

Commit

Permalink
Revert "Apply similar logic to vecMasternodesUsed" (#2503)
Browse files Browse the repository at this point in the history
This reverts commit ebb1200.
  • Loading branch information
UdjinM6 authored and codablock committed Nov 27, 2018
1 parent ba49a4a commit ed53fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/privatesend-client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -952,10 +952,10 @@ bool CPrivateSendClientManager::DoAutomaticDenominating(CConnman& connman, bool
return false;
}

int nMnCount = mnodeman.CountMasternodes();
int nMnCountEnabled = mnodeman.CountEnabled(MIN_PRIVATESEND_PEER_PROTO_VERSION);

// If we've used 90% of the Masternode list then drop the oldest first ~30%
int nThreshold_high = nMnCount * 0.9;
int nThreshold_high = nMnCountEnabled * 0.9;
int nThreshold_low = nThreshold_high * 0.7;
LogPrint("privatesend", "Checking vecMasternodesUsed: size: %d, threshold: %d\n", (int)vecMasternodesUsed.size(), nThreshold_high);

Expand Down

0 comments on commit ed53fce

Please sign in to comment.