Skip to content

Commit

Permalink
masternode-payments: fixes GetBlockValue call
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbora committed May 2, 2024
1 parent 4bee0d6 commit 4489a23
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 @@ -257,7 +257,7 @@ bool IsBlockPayeeValid(const CBlock& block, int nBlockHeight)
if (consensus.nAZZRCoinSupplyMintHeight == nBlockHeight) {
LogPrint(BCLog::MASTERNODE, "masternode", "IsBlockPayeeValid: Check AZZR coin supply mint reward\n");

CAmount amount = CMasternode::GetBlockValue(nBlockHeight) - CMasternode::GetBlockValue(nBlockHeight + 1);
CAmount amount = CRewards::GetBlockValue(nBlockHeight) - CRewards::GetBlockValue(nBlockHeight + 1);
CScript payee = GetScriptForDestination(DecodeDestination(consensus.sAZZRCoinSupplyMintAddress));

LogPrint(BCLog::MASTERNODE, "IsBlockPayeeValid, expected AZZR coin supply mint amount is %lld, coins %f\n", amount, (float)amount / COIN);
Expand Down Expand Up @@ -321,7 +321,7 @@ void CMasternodePayments::FillBlockPayee(CMutableTransaction& txNew, const CBloc
}

CAmount masternodePayment = CMasternode::GetMasternodePayment(nHeight);
CAmount blockValue = CMasternode::GetBlockValue(nHeight);
CAmount blockValue = CRewards::GetBlockValue(nHeight);
CAmount azzrCoinSupplyMint = 0;
CScript azzrPayee;

Expand Down

0 comments on commit 4489a23

Please sign in to comment.