From 5de7f88e26e137d2b6f07fdd60543633bb93bf5e Mon Sep 17 00:00:00 2001 From: Block Mechanic Date: Tue, 2 Aug 2022 13:36:13 +0200 Subject: [PATCH 1/2] Update validation.cpp --- src/validation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index ba4aab1..63f1831 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1365,7 +1365,7 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams) } int halvings = nHeight / Params().GetConsensus().nSubsidyHalvingInterval; - if (Params().NetworkIDString() == CBaseChainParams::TESTNET && nHeight < 8000) + if (Params().NetworkIDString() == CBaseChainParams::TESTNET && nHeight < 5000) nSubsidy = 100 * COIN; // Subsidy is cut in half every 2,100,000 blocks which will occur approximately every 4 years. @@ -1379,7 +1379,7 @@ CAmount GetBlockValue(int nHeight, const CAmount &nFees) int64_t budgetValue = nSubsidy * 0.25; if (Params().NetworkIDString() == CBaseChainParams::TESTNET) { - if (nHeight >= 8000) + if (nHeight >= 5000) nSubsidy -= budgetValue; } else { if (nHeight > 1265000) From 9468ff3dc02978ed1eb3f1e6e9a152b1885c26bf Mon Sep 17 00:00:00 2001 From: Block Mechanic Date: Tue, 2 Aug 2022 13:36:17 +0200 Subject: [PATCH 2/2] Update chainparams.cpp --- src/chainparams.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index ee80daf..5ffac66 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -283,7 +283,7 @@ class CTestNetParams : public CChainParams { pchMessageStart[2] = 0x09; pchMessageStart[3] = 0x07; nDefaultPort = 18333; - nBlockPoSStart = 8000; + nBlockPoSStart = 5000; nPruneAfterHeight = 100000; nAuxpowChainId = 20; nChainStallDuration = 60*60; @@ -301,10 +301,10 @@ class CTestNetParams : public CChainParams { CScript genscript(addrdata.begin(), addrdata.end()); consensus.mandatory_coinbase_destination = genscript; - genesis = CreateGenesisBlock(1658666109, 919334, 0x1e0ffff0, 1, 10 * COIN, consensus); + genesis = CreateGenesisBlock(1659429370, 551064, 0x1e0ffff0, 1, 10 * COIN, consensus); consensus.hashGenesisBlock = genesis.GetHash(); //MineNewGenesisBlock(consensus,genesis); - assert(consensus.hashGenesisBlock == uint256S("0x00000ff89c2e1ed18e7b6ce593ecd3cefd1fc8f252369e192bae05301b3e992d")); + assert(consensus.hashGenesisBlock == uint256S("0x000003e4d706ae2480a9b269042d8c9c493a216a328103a4bdb9656b93818307")); assert(genesis.hashMerkleRoot == uint256S("0x80ad356118a9ab8db192db66ef77146cc36d958f959251feace550e4ca3d1446")); vFixedSeeds.clear();