Skip to content

Commit

Permalink
Fix block value calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
yurykk committed Sep 8, 2021
1 parent 89997d9 commit 523c20e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/masternode-payments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ void CMasternodePayments::FillBlockPayee(CMutableTransaction& txNew, int64_t nFe
}
}

CAmount blockValue = GetBlockValue(pindexPrev->nHeight);
CAmount masternodePayment = GetMasternodePayment(pindexPrev->nHeight, blockValue, 0, fZTWINSStake);
CAmount blockValue = GetBlockValue(pindexPrev->nHeight + 1);
CAmount masternodePayment = GetMasternodePayment(pindexPrev->nHeight + 1, blockValue, 0, fZTWINSStake);

if (hasPayment) {
if (fProofOfStake) {
Expand Down

0 comments on commit 523c20e

Please sign in to comment.