Browse Source

Changed initial target.

0.16.3-insta
Jianping Wu 6 years ago
parent
commit
6e914da778
  1. 7
      src/chainparams.cpp

7
src/chainparams.cpp

@ -82,7 +82,7 @@ public: @@ -82,7 +82,7 @@ public:
consensus.BIP34Hash = uint256S("fa09d204a83a768ed5a7c8d441fa62f2043abf420cff1226c7b4329aeb9d51cf");
consensus.BIP65Height = 918684; // bab3041e8977e0dc3eeff63fe707b92bde1dd449d8efafb248c27c8264cc311a
consensus.BIP66Height = 811879; // 7aceee012833fa8952f8835d8b1b3ae233cd6ab08fdb27a771d2bd7bdc491894
consensus.powLimit = uint256S("0007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.powLimit = uint256S("000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // 3.5 days
consensus.nPowTargetSpacing = 2.5 * 60;
consensus.fPowAllowMinDifficultyBlocks = false;
@ -122,12 +122,11 @@ public: @@ -122,12 +122,11 @@ public:
nPruneAfterHeight = 100000;
// JWU change the timestamp!
genesis = CreateGenesisBlock(1317972665, 1260, 0x1f07ffff, 1, 50 * COIN); // Cryptonight
genesis = CreateGenesisBlock(1317972665, 4657, 0x1f0ffff0, 1, 50 * COIN); // Cryptonight
//genesis = CreateGenesisBlock(1317972665, 176784, 0x1e0ffff0, 1, 50 * COIN); // Scrypt
//JW remove the following code!
arith_uint256 hashTarget = arith_uint256().SetCompact(genesis.nBits);
//arith_uint256 hashTarget = UintToArith256(uint256S("0x00ffff0000000000000000000000000000000000000000c1bfe2bbe614f41260"));
uint256 hashGenesisBlock = uint256S("0x01");
if (false && genesis.GetHash() != hashGenesisBlock) {
printf("recalculating params for mainnet.\n");
@ -143,7 +142,7 @@ public: @@ -143,7 +142,7 @@ public:
}
consensus.hashGenesisBlock = genesis.GetHash();
assert(consensus.hashGenesisBlock == uint256S("0xf50e810cb73b256207f90075a48dbb7a39ac2ec68b489d76daab7487f4687bcc")); //Cryptonight
assert(consensus.hashGenesisBlock == uint256S("0xec1e7f1dbec5154f9253f60fd4d54c4569a8d07b9ae3c088a3752b76b619b36c")); //Cryptonight
//assert(consensus.hashGenesisBlock == uint256S("0xd7a681608b8fc3bd6d85110317357920291e1c6a4fdf6ee38e5d04c49b878c33")); // Scrypt
assert(genesis.hashMerkleRoot == uint256S("0x677b0cc3aa49a118484f34bc1b1065e4ecdbd9a895e43d7fcd1c4b74beb492da"));

Loading…
Cancel
Save