Skip to content

Commit

Permalink
Experimental. Set masternode cost to 888 BIT. Set PoS block value to …
Browse files Browse the repository at this point in the history
…0.65 (Atari rules), masternode gets 0.44 since block 288888.
  • Loading branch information
8-BIT-PARTY committed Jun 29, 2015
1 parent d506e5b commit 60c1141
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/activemasternode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "clientversion.h"

//
// Bootup the masternode, look for a 500 8BIT input and register on the network
// Bootup the masternode, look for a 888 8BIT input and register on the network
//
void CActiveMasternode::ManageStatus()
{
Expand Down Expand Up @@ -371,7 +371,7 @@ vector<COutput> CActiveMasternode::SelectCoinsMasternode()
// Filter
BOOST_FOREACH(const COutput& out, vCoins)
{
if(out.tx->vout[out.i].nValue == 112*COIN) { //exactly
if(out.tx->vout[out.i].nValue == 888*COIN) { //exactly
filteredCoins.push_back(out);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/darksend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1985,7 +1985,7 @@ bool CDarkSendSigner::IsVinAssociatedWithPubkey(CTxIn& vin, CPubKey& pubkey){
//if(GetTransaction(vin.prevout.hash, txVin, hash, true)){
if(GetTransaction(vin.prevout.hash, txVin, hash)){
BOOST_FOREACH(CTxOut out, txVin.vout){
if(out.nValue == 112*COIN){
if(out.nValue == 888*COIN){
if(out.scriptPubKey == payee2) return true;
}
}
Expand Down
9 changes: 5 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,10 @@ int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees, unsigned int nHei
{
int64_t nSubsidy;

if (nHeight > 11499){
if (nHeight > 288887) {
nSubsidy = static_cast<int64_t>(0.65 * COIN);
}
else if (nHeight > 11499){
nSubsidy = static_cast<int64_t>(1.2 * COIN);
}else if (nHeight > 1888){
nSubsidy = nCoinAge * COIN_YEAR_REWARD * 33 / (365 * 33 + 8);
Expand Down Expand Up @@ -4293,7 +4296,5 @@ bool SendMessages(CNode* pto, bool fSendTrickle)

int64_t GetMasternodePayment(int nHeight, int64_t blockValue)
{
int64_t ret = static_cast<int64_t>(blockValue * 0.733333333333333333); //67%

return ret;
return static_cast<int64_t>(blockValue * (0.733333333333333333 ? nHeight < 288888 : 0.677));
}
2 changes: 1 addition & 1 deletion src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CValidationState;
#define START_MASTERNODE_PAYMENTS_TESTNET 1429738064
#define START_MASTERNODE_PAYMENTS 1429738064

static const int64_t DARKSEND_COLLATERAL = (112*COIN);
static const int64_t DARKSEND_COLLATERAL = (888*COIN);
static const int64_t DARKSEND_FEE = (0.00925*COIN);
static const int64_t DARKSEND_POOL_MAX = (1111.99*COIN);

Expand Down
2 changes: 1 addition & 1 deletion src/spork.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using namespace boost;


#define SPORK_1_MASTERNODE_PAYMENTS_ENFORCEMENT_DEFAULT 2428537599 //2015-4-8 23:59:59 GMT
#define SPORK_2_MAX_VALUE_DEFAULT 112 //500 8BIT
#define SPORK_2_MAX_VALUE_DEFAULT 888 //888 8BIT
#define SPORK_3_REPLAY_BLOCKS_DEFAULT 0
#define SPORK_4_RECONVERGE_DEFAULT 1420070400 //2047-1-1

Expand Down

0 comments on commit 60c1141

Please sign in to comment.