Skip to content
This repository was archived by the owner on Mar 2, 2021. It is now read-only.

Commit 6e72c6a

Browse files
committed
Changed reward structure, version bump
1 parent 83e4e43 commit 6e72c6a

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
22
AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 1)
4-
define(_CLIENT_VERSION_MINOR, 1)
4+
define(_CLIENT_VERSION_MINOR, 2)
55
define(_CLIENT_VERSION_REVISION, 0)
66
define(_CLIENT_VERSION_BUILD, 0)
77
define(_CLIENT_VERSION_IS_RELEASE, true)

src/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1651,6 +1651,8 @@ int64_t GetBlockValue(int nHeight)
16511651
if (nHeight > 867240) nSubsidy = COIN * 3;
16521652

16531653
if (nHeight <= 2016) nSubsidy /= 10000 ;
1654+
1655+
if (nHeight >= 50000) nSubsidy /= 10;
16541656

16551657
return nSubsidy;
16561658
}
@@ -1668,7 +1670,7 @@ int64_t GetMasternodePayment(int nHeight, int64_t blockValue, int nMasternodeCou
16681670
return 0;
16691671
}
16701672

1671-
if (nHeight > 19710) {
1673+
if (nHeight > 19710 && nHeight < 50000) {
16721674
ret = blockValue / 100 * 90;
16731675
} else {
16741676
ret = blockValue / 100 * 60;

src/masternode-payments.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ bool CMasternodeBlockPayees::IsTransactionValid(const CTransaction& txNew)
529529
int nMasternode_Drift_Count = 0;
530530
std::string strPayeesPossible = "";
531531

532-
CAmount nReward = GetBlockValue(nBlockHeight);
532+
CAmount nReward = GetBlockValue(nBlockHeight-1);
533533

534534
if (IsSporkActive(SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT)) {
535535
// Get a stable number of masternodes by ignoring newly activated (< 8000 sec old) masternodes
@@ -542,7 +542,7 @@ bool CMasternodeBlockPayees::IsTransactionValid(const CTransaction& txNew)
542542
nMasternode_Drift_Count = mnodeman.size() + Params().MasternodeCountDrift();
543543
}
544544

545-
CAmount requiredMasternodePayment = GetMasternodePayment(nBlockHeight, nReward, nMasternode_Drift_Count);
545+
CAmount requiredMasternodePayment = GetMasternodePayment(nBlockHeight-1, nReward, nMasternode_Drift_Count);
546546

547547
//require at least 6 signatures
548548
BOOST_FOREACH (CMasternodePayee& payee, vecPayments)

src/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* network protocol versioning
1414
*/
1515

16-
static const int PROTOCOL_VERSION = 70714;
16+
static const int PROTOCOL_VERSION = 70716;
1717

1818
//! initial proto version, to be increased after version/verack negotiation
1919
static const int INIT_PROTO_VERSION = 209;

0 commit comments

Comments
 (0)