Skip to content

Commit

Permalink
Wallet Release
Browse files Browse the repository at this point in the history
  • Loading branch information
RESQ Chain authored and RESQ Chain committed Mar 3, 2019
1 parent cf567f0 commit d3016a9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 20 deletions.
16 changes: 9 additions & 7 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ static void convertSeed6(std::vector<CAddress>& vSeedsOut, const SeedSpec6* data
// + Contains no strange transactions
static Checkpoints::MapCheckpoints mapCheckpoints =
boost::assign::map_list_of
(0, uint256("0000027edee5bfdd62a8d5db989ed5bccf68b1ed5736f13edd01a7bfb6346162"));
(0, uint256("0000044a7c2f240927bed3fe5875ac2c53e59b483ff528cb43a28fd8b86da77d"))
(125, uint256("00000005a3e5686605f6b4892992d38c41c3977a76f9a39caa8371ce12b18663"))
(450, uint256("f5234a89e75811919ff101a81ac7c559a3e493c1be26d7b67dba35eecc519c61"));

static const Checkpoints::CCheckpointData data = {
&mapCheckpoints,
1551287355, // * UNIX timestamp of last checkpoint block
661, // * total number of transactions between genesis and last checkpoint
1551602587, // * UNIX timestamp of last checkpoint block
703, // * total number of transactions between genesis and last checkpoint
// (the tx=... number in the SetBestChain debug.log lines)
1000 // * estimated number of transactions per day after checkpoint
};
Expand Down Expand Up @@ -133,7 +135,7 @@ class CMainParams : public CChainParams
nLastPOWBlock = 250;
nModifierUpdateBlock = 1;
nZerocoinStartHeight = 255;
nZerocoinStartTime = 1551251804; // October 17, 2017 4:30:00 AM
nZerocoinStartTime = 1551533012; // October 17, 2017 4:30:00 AM
nBlockEnforceSerialRange = INT_MAX; //Enforce serial range starting this block
nBlockRecalculateAccumulators = INT_MAX; //Trigger a recalculation of accumulators
nBlockFirstFraudulent = INT_MAX; //First block that bad serials emerged
Expand All @@ -155,12 +157,12 @@ class CMainParams : public CChainParams
genesis.hashPrevBlock = 0;
genesis.hashMerkleRoot = genesis.BuildMerkleTree();
genesis.nVersion = 1;
genesis.nTime = 1551251803;
genesis.nTime = 1551533011;
genesis.nBits = 0x1e0ffff0;
genesis.nNonce = 5208531;
genesis.nNonce = 5506778;

hashGenesisBlock = genesis.GetHash();
assert(hashGenesisBlock == uint256("0x0000027edee5bfdd62a8d5db989ed5bccf68b1ed5736f13edd01a7bfb6346162"));
assert(hashGenesisBlock == uint256("0x0000044a7c2f240927bed3fe5875ac2c53e59b483ff528cb43a28fd8b86da77d"));
assert(genesis.hashMerkleRoot == uint256("0x07b59f5058999c9f11d50df503dd46b3ccc279f0693f2620fa511ece8541a867"));

vSeeds.push_back(CDNSSeedData("Seed1", "seed1.resqchain.org"));
Expand Down
6 changes: 5 additions & 1 deletion src/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ unsigned int getIntervalVersion(bool fTestNet)

// Hard checkpoints of stake modifiers to ensure they are deterministic
static std::map<int, unsigned int> mapStakeModifierCheckpoints =
boost::assign::map_list_of(1, 0x03887083u);
boost::assign::map_list_of(1, 0xcb7986b8u)
(50, 0x0cbe5cc2u)
(100, 0x8ddff3f3u)
(125, 0xda002dfcu)
(450, 0x40ce4dfcu);

// Get time weight
int64_t GetWeight(int64_t nIntervalBeginning, int64_t nIntervalEnd)
Expand Down
12 changes: 6 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1864,14 +1864,14 @@ int64_t GetBlockValue(int nHeight)
bool phase1 = nHeight > 1 && nHeight <= Params().LAST_POW_BLOCK();
//POS Starts here
bool phase2 = nHeight > Params().LAST_POW_BLOCK() && nHeight <= 500;
bool phase3 = nHeight >= 501 && nHeight <= 280000;
bool phase4 = nHeight >= 280001 && nHeight <= 380000;
bool phase5 = nHeight >= 380001 && nHeight <= 580000;
bool phase6 = nHeight >= 580001 && nHeight <= 780000;
bool phase7 = nHeight >= 780001 && nHeight <= 880000;
bool phase3 = nHeight >= 501 && nHeight <= 275000;
bool phase4 = nHeight >= 275001 && nHeight <= 375000;
bool phase5 = nHeight >= 375001 && nHeight <= 575000;
bool phase6 = nHeight >= 575001 && nHeight <= 775000;
bool phase7 = nHeight >= 775001 && nHeight <= 875000;

int64_t nSubsidy = 1 * COIN;
if (nHeight == 1) return 140763250 * COIN;
if (nHeight == 1) return 144762450 * COIN;
if(phase1)
nSubsidy = 1 * COIN;
else if (phase2)
Expand Down
12 changes: 6 additions & 6 deletions src/masternode-budget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -921,15 +921,15 @@ CAmount CBudgetManager::GetTotalBudget(int nHeight)

//get block value and calculate from that
CAmount nSubsidy = 0;
if (nHeight > Params().LAST_POW_BLOCK() && nHeight <= 180000)
if (nHeight > Params().LAST_POW_BLOCK() && nHeight <= 175000)
nSubsidy = 80 * COIN;
else if (nHeight > 180000 && nHeight <= 380000)
else if (nHeight > 175000 && nHeight <= 375000)
nSubsidy = 60 * COIN;
else if (nHeight > 380000 && nHeight <= 580000)
else if (nHeight > 375000 && nHeight <= 575000)
nSubsidy = 40 * COIN;
else if (nHeight > 580000 && nHeight <= 780000)
else if (nHeight > 575000 && nHeight <= 775000)
nSubsidy = 20 * COIN;
else if (nHeight > 780000 && nHeight <= 880000)
else if (nHeight > 775000 && nHeight <= 875000)
nSubsidy = 10 * COIN;
else
nSubsidy = 0 * COIN;
Expand All @@ -954,7 +954,7 @@ void CBudgetManager::NewBlock()
// incremental sync with our peers
if (masternodeSync.IsSynced()) {
LogPrint("mnbudget","CBudgetManager::NewBlock - incremental sync started\n");
if (chainActive.Height() % 1440 == rand() % 1440) {
if (chainActive.Height() % 576 == rand() % 576) {
ClearSeen();
ResetSync();
}
Expand Down

0 comments on commit d3016a9

Please sign in to comment.