Skip to content

Commit

Permalink
refactor: missing usage of MasternodePayments::PlatformShare
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Aug 31, 2023
1 parent fadd425 commit fa47b79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/evo/creditpool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <logging.h>
#include <validation.h>
#include <node/blockstorage.h>
#include <masternode/payments.h>

#include <algorithm>
#include <exception>
Expand Down Expand Up @@ -241,7 +242,7 @@ bool CCreditPoolDiff::SetTarget(const CTransaction& tx, TxValidationState& state
for (const CTxOut& txout : tx.vout) {
blockReward += txout.nValue;
}
masternodeReward = 0.375 * GetMasternodePayment(cbTx.nHeight, blockReward, params.BRRHeight);
masternodeReward = MasternodePayments::PlatformShare(GetMasternodePayment(cbTx.nHeight, blockReward, params.BRRHeight));
LogPrintf("CreditPool: set target to %lld with MN reward %lld\n", *targetBalance, masternodeReward);

return true;
Expand Down

0 comments on commit fa47b79

Please sign in to comment.