Skip to content

Commit ed53fce

Browse files
UdjinM6codablock
authored andcommitted
Revert "Apply similar logic to vecMasternodesUsed" (#2503)
This reverts commit ebb1200.
1 parent ba49a4a commit ed53fce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/privatesend-client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,10 +952,10 @@ bool CPrivateSendClientManager::DoAutomaticDenominating(CConnman& connman, bool
952952
return false;
953953
}
954954

955-
int nMnCount = mnodeman.CountMasternodes();
955+
int nMnCountEnabled = mnodeman.CountEnabled(MIN_PRIVATESEND_PEER_PROTO_VERSION);
956956

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

0 commit comments

Comments
 (0)