Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
version updated
  • Loading branch information
XUVCoin committed Dec 6, 2017
1 parent 7fd0a08 commit 382f427
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 0
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 0
#define CLIENT_VERSION_BUILD 2

// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
Expand Down
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ int64_t GetProofOfWorkReward(int nHeight, int64_t nFees)
int64_t GetProofOfStakeReward(const CBlockIndex* pindexPrev, int64_t nCoinAge, int64_t nFees)
{
int64_t nSubsidy = STATIC_POS_REWARD;
if(nBestHeight < 17600)
if((pindexPrev->nHeight) > 17343)
nSubsidy = 18 * COIN;
return nSubsidy + nFees;
}
Expand Down Expand Up @@ -4478,9 +4478,9 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
int64_t GetMasternodePayment(int nHeight, int64_t blockValue)
{
int64_t ret = blockValue * 3/4; //75%

if(nHeight>53000)
ret = blockValue * 1/10; //10%

return ret;
}
2 changes: 1 addition & 1 deletion src/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const std::string CLIENT_NAME("XUV");
// git will put "#define GIT_ARCHIVE 1" on the next line inside archives.
#define GIT_ARCHIVE 1
#ifdef GIT_ARCHIVE
# define GIT_COMMIT_ID "60027"
# define GIT_COMMIT_ID "60028"
#endif

#define BUILD_DESC_FROM_COMMIT(maj,min,rev,build,commit) \
Expand Down
14 changes: 7 additions & 7 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,32 @@ static const int DATABASE_VERSION = 70509;
// network protocol versioning
//

static const int PROTOCOL_VERSION = 60027;
static const int PROTOCOL_VERSION = 60028;

// intial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;

// disconnect from peers older than this proto version
static const int MIN_PEER_PROTO_VERSION = 60027;
static const int MIN_PEER_PROTO_VERSION = 60028;

// minimum peer version accepted by DarkSendPool
static const int MIN_POOL_PEER_PROTO_VERSION = 60027;
static const int MIN_POOL_PEER_PROTO_VERSION = 60028;

static const int MIN_INSTANTX_PROTO_VERSION = 60027;
static const int MIN_INSTANTX_PROTO_VERSION = 60028;

//! minimum peer version that can receive masternode payments
// V1 - Last protocol version before update
// V2 - Newest protocol version
static const int MIN_MASTERNODE_PAYMENT_PROTO_VERSION_1 = 60027;
static const int MIN_MASTERNODE_PAYMENT_PROTO_VERSION_2 = 60027;
static const int MIN_MASTERNODE_PAYMENT_PROTO_VERSION_1 = 60028;
static const int MIN_MASTERNODE_PAYMENT_PROTO_VERSION_2 = 60028;

// 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 = 0;
static const int NOBLKS_VERSION_END = 60027;
static const int NOBLKS_VERSION_END = 60028;

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

0 comments on commit 382f427

Please sign in to comment.