Skip to content

Commit

Permalink
Revert block rewards at height 123700
Browse files Browse the repository at this point in the history
  • Loading branch information
AegeusCoin committed May 10, 2018
1 parent 68488cc commit ab6cade
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 1)
define(_CLIENT_VERSION_MINOR, 1)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_BUILD, 1)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2018)
AC_INIT([Aegeus Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[www.aegeus.io],[aegeus])
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 1
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 0
#define CLIENT_VERSION_BUILD 1

//! Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
Expand Down
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ int64_t GetBlockValue(int nHeight)

if (nHeight < 2 && nHeight > 0) {
return 21000000 * COIN;
} else if (nHeight >= 123314) {
} else if (nHeight >= 123314 && nHeight < 123700) {
return 40 * COIN;
}

Expand All @@ -1611,7 +1611,7 @@ int64_t GetMasternodePayment(int nHeight, int64_t blockValue, int nMasternodeCou
{
int64_t ret = 0;

if (nHeight >= 123314) {
if (nHeight >= 123314 && nHeight < 123700) {
ret = 100 * COIN;
} else {
ret = blockValue / 2;
Expand Down Expand Up @@ -5332,8 +5332,8 @@ int ActiveProtocol()
return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT;
*/

if (chainActive.Tip()->nHeight >= 123314) {
return 70811;
if (chainActive.Tip()->nHeight >= 123700) {
return 70812;
}

return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT;
Expand Down
8 changes: 4 additions & 4 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* network protocol versioning
*/

static const int PROTOCOL_VERSION = 70811;
static const int PROTOCOL_VERSION = 70812;

//! initial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;
Expand All @@ -21,16 +21,16 @@ static const int INIT_PROTO_VERSION = 209;
static const int GETHEADERS_VERSION = 70077;

//! disconnect from peers older than this proto version
static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 70810;
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = 70810;
static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 70811;
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = 70811;

//! nTime field added to CAddress, starting with this version;
//! if possible, avoid requesting addresses nodes older than this
static const int CADDR_TIME_VERSION = 31402;

//! only request blocks from nodes outside this range of versions
static const int NOBLKS_VERSION_START = 32000;
static const int NOBLKS_VERSION_END = 70909;
static const int NOBLKS_VERSION_END = 70812;

//! BIP 0031, pong message, is enabled for all versions AFTER this one
static const int BIP0031_VERSION = 60000;
Expand Down

0 comments on commit ab6cade

Please sign in to comment.