diff --git a/src/masternode-payments.cpp b/src/masternode-payments.cpp index 0eac3cccc..73f957aa5 100644 --- a/src/masternode-payments.cpp +++ b/src/masternode-payments.cpp @@ -415,7 +415,7 @@ bool CMasternodePaymentWinner::IsValid() { if(IsReferenceNode(vinMasternode)) return true; - int n = mnodeman.GetMasternodeRank(vinMasternode, nBlockHeight-100, GetMinMasternodePaymentsProto()); + int n = mnodeman.GetMasternodeRank(vinMasternode, nBlockHeight-100, masternodePayments.GetMinMasternodePaymentsProto()); if(n == -1) {