Pass reference when calling HasPayeeWithVotes (#1569)

This commit is contained in:
UdjinM6 2017-08-11 21:50:57 +03:00 committed by GitHub
parent 105713c10a
commit c608bbec1d
2 changed files with 2 additions and 2 deletions

View File

@ -528,7 +528,7 @@ bool CMasternodeBlockPayees::GetBestPayee(CScript& payeeRet)
return (nVotes > -1); return (nVotes > -1);
} }
bool CMasternodeBlockPayees::HasPayeeWithVotes(CScript payeeIn, int nVotesReq) bool CMasternodeBlockPayees::HasPayeeWithVotes(const CScript& payeeIn, int nVotesReq)
{ {
LOCK(cs_vecPayees); LOCK(cs_vecPayees);

View File

@ -98,7 +98,7 @@ public:
void AddPayee(const CMasternodePaymentVote& vote); void AddPayee(const CMasternodePaymentVote& vote);
bool GetBestPayee(CScript& payeeRet); bool GetBestPayee(CScript& payeeRet);
bool HasPayeeWithVotes(CScript payeeIn, int nVotesReq); bool HasPayeeWithVotes(const CScript& payeeIn, int nVotesReq);
bool IsTransactionValid(const CTransaction& txNew); bool IsTransactionValid(const CTransaction& txNew);