Browse Source

Re-arranged keva ops.

Changed genesis block reward to 0.00001 coin.
cn
Jianping Wu 6 years ago
parent
commit
33bb11cdda
  1. 10
      src/chainparams.cpp
  2. 4
      src/script/script.h

10
src/chainparams.cpp

@ -112,7 +112,9 @@ public: @@ -112,7 +112,9 @@ public:
pchMessageStart[3] = 0x9a;
nDefaultPort = 9333;
nPruneAfterHeight = 100000;
genesis = CreateGenesisBlock(1543789622, 3316, 0x1f0ffff0, 1, 50 * COIN);
const uint32_t genesisBlockReward = 0.00001 * COIN; // A small reward for the core developers :-)
genesis = CreateGenesisBlock(1543789622, 3302, 0x1f0ffff0, 1, genesisBlockReward);
#if 0
arith_uint256 hashTarget = arith_uint256().SetCompact(genesis.nBits);
@ -123,8 +125,10 @@ public: @@ -123,8 +125,10 @@ public:
printf("old mainnet genesis hash: %s\n", hashGenesisBlock.ToString().c_str());
// deliberately empty for loop finds nonce value.
for(genesis.nNonce = 500; hashTarget < UintToArith256(genesis.GetPoWHash()); genesis.nNonce++) {
if ((genesis.nNonce % 500) == 1) {
printf("nNonce: %d\n\n", genesis.nNonce);
}
}
printf("new mainnet genesis merkle root: %s\n", genesis.hashMerkleRoot.ToString().c_str());
printf("new mainnet genesis nonce: %d\n", genesis.nNonce);
printf("new mainnet genesis hash: %s\n", genesis.GetHash().ToString().c_str());
@ -132,8 +136,8 @@ public: @@ -132,8 +136,8 @@ public:
#endif
consensus.hashGenesisBlock = genesis.GetHash();
assert(consensus.hashGenesisBlock == uint256S("0x223df7d593214c56f16244fdbdecba8a2d1d5a7500fade6542f00812c7a70a5d"));
assert(genesis.hashMerkleRoot == uint256S("0x13ec98c3307b8e6b67b91c605c7347916a99f9dfde7b5d88365aaef322192314"));
assert(consensus.hashGenesisBlock == uint256S("0x77c037d74bc51b535629537c8e9530340ea12272f43d261a0ee59e8f2ad0e6f6"));
assert(genesis.hashMerkleRoot == uint256S("0xb21d4680875c0e472b7dbf3dbab2aaeb2dbbb5fa8b154f978b5ea0706d1fd5b9"));
// Note that of those with the service bits flag, most only support a subset of possible options
vSeeds.emplace_back("dnsseed.kevacoin.org");

4
src/script/script.h

@ -184,8 +184,8 @@ enum opcodetype @@ -184,8 +184,8 @@ enum opcodetype
OP_NOP10 = 0xb9,
// Keva
OP_KEVA_PUT=0xd0,
OP_KEVA_NAMESPACE=0xd1,
OP_KEVA_NAMESPACE=0xd0,
OP_KEVA_PUT=0xd1,
OP_KEVA_DELETE=0xd2,
// template matching params

Loading…
Cancel
Save