Skip to content

Commit 149e92c

Browse files
committed
fix: CheckBlock on GetMasternodePayment and GetMasternodePayment with correct nHeight.
1 parent 93140f3 commit 149e92c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/cblock.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,12 +1191,12 @@ bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot, bool fCheckSig) c
11911191
fBlockHasPayments = false;
11921192
}
11931193

1194-
nStandardPayment = GetProofOfWorkReward(pindex->nHeight + 1, 0);
1194+
nStandardPayment = GetProofOfWorkReward(pindex->nHeight, 0);
11951195
}
11961196

11971197
// Set payout values depending if PoW/PoS
1198-
nMasternodePayment = GetMasternodePayment(pindex->nHeight + 1, nStandardPayment) / COIN;
1199-
nDevopsPayment = GetDevOpsPayment(pindex->nHeight + 1, nStandardPayment) / COIN;
1198+
nMasternodePayment = GetMasternodePayment(pindex->nHeight, nStandardPayment) / COIN;
1199+
nDevopsPayment = GetDevOpsPayment(pindex->nHeight, nStandardPayment) / COIN;
12001200

12011201
LogPrintf("Hardset MasternodePayment: %lu | Hardset DevOpsPayment: %lu \n", nMasternodePayment, nDevopsPayment);
12021202

0 commit comments

Comments
 (0)