Skip to content

Commit f5278bd

Browse files
committed
Adjust budget payment logic for 6.0
1 parent 6dd881a commit f5278bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/masternode-payments.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,13 @@ void FillBlockPayee(CMutableTransaction& txCoinbase, CMutableTransaction& txCoin
341341
return FillBlockPayee_legacy(txCoinbase, txCoinstake, pindexPrev, fProofOfStake);
342342
}
343343

344-
// Add masternode payment
345-
masternodePayments.FillBlockPayee(txCoinbase, txCoinstake, pindexPrev, fProofOfStake);
346-
347344
// Add budget payments (if superblock, and SPORK_13 is active)
348-
if (sporkManager.IsSporkActive(SPORK_13_ENABLE_SUPERBLOCKS)) {
345+
if (sporkManager.IsSporkActive(SPORK_13_ENABLE_SUPERBLOCKS) && g_budgetman.FillBlockPayee(txCoinbase, txCoinstake, pindexPrev->nHeight + 1, fProofOfStake)) {
349346
g_budgetman.FillBlockPayees(txCoinbase, height);
350347
}
348+
349+
// Add masternode payment
350+
masternodePayments.FillBlockPayee(txCoinbase, txCoinstake, pindexPrev, fProofOfStake);
351351
}
352352

353353
std::string GetRequiredPaymentsString(int nBlockHeight)

0 commit comments

Comments
 (0)