Skip to content

Commit

Permalink
Fix bug in GetNextMasternodeForPayment (#2789)
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Mar 21, 2019
1 parent 7135f01 commit 0ed5ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/masternode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ UniValue GetNextMasternodeForPayment(int heightShift)
auto payees = mnList.GetProjectedMNPayees(heightShift);
if (payees.empty())
return "unknown";
auto payee = payees[heightShift - 9];
auto payee = payees.back();
CScript payeeScript = payee->pdmnState->scriptPayout;

CTxDestination payeeDest;
Expand Down

0 comments on commit 0ed5ae0

Please sign in to comment.