Pass reference when calling HasPayeeWithVotes (#1569)
This commit is contained in:
parent
105713c10a
commit
c608bbec1d
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user