Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New reward percentages 70215 #63

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class CMainParams : public CChainParams {
strNetworkID = "main";
consensus.nSubsidyHalvingInterval = 210240; // Note: actual number of blocks per calendar year with DGW v3 is ~200700 (for example 449750 - 249050)
consensus.nMasternodePaymentsStartBlock = 200; // not true, but it's ok as long as it's less then nMasternodePaymentsIncreaseBlock
consensus.nMasternodePaymentsIncreaseBlock = 50000; // 50000 height aproximately April 20th
consensus.nMasternodePaymentsIncreaseBlock = 217160; // 217160 height aproximately February 20th
consensus.nMasternodePaymentsIncreasePeriod = 576*30; // Not used
consensus.nFeeChangeBlock = 155000; // Aproximately October 29th 2018
consensus.nInstantSendKeepLock = 24;
Expand Down
4 changes: 2 additions & 2 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1268,9 +1268,9 @@ CAmount GetMasternodePayment(int nHeight, CAmount blockValue, const Consensus::P
double dMasternodePart;

if(nHeight < consensusParams.nMasternodePaymentsIncreaseBlock){
dMasternodePart = 9.0/16.0; // 56.25% of the block reward.
} else {
dMasternodePart = 15.0/16.0; // 93.75% of the block reward.
} else {
dMasternodePart = 13.0/16.0; // 81.25% of the corresponding reward for miners/masternodes, or 65% of the total block reward.
}

return (blockValue * dMasternodePart);
Expand Down