From 4489a23ffb16f26c5360d9e88d99ac9ff00b31d8 Mon Sep 17 00:00:00 2001 From: zimbora Date: Thu, 2 May 2024 23:50:07 +0100 Subject: [PATCH] masternode-payments: fixes GetBlockValue call --- src/masternode-payments.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/masternode-payments.cpp b/src/masternode-payments.cpp index da3d7d6aa..f53ff9c9b 100644 --- a/src/masternode-payments.cpp +++ b/src/masternode-payments.cpp @@ -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); @@ -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;