Browse Source

Added kevacoin DNS seeders.

cn
Jianping Wu 6 years ago
parent
commit
638a5a715c
  1. 41
      src/chainparams.cpp
  2. 8
      src/rpc/mining.cpp

41
src/chainparams.cpp

@ -81,7 +81,7 @@ public: @@ -81,7 +81,7 @@ public:
strNetworkID = "main";
consensus.nSubsidyHalvingInterval = 13440000;
consensus.BIP16Height = 1;
consensus.BIP34Height = 0;
consensus.BIP34Height = 200;
consensus.BIP34Hash = uint256S("0x581cc1e4153a2a367012d3678f0f83f7d62286d84e69ab860804acf3ff2f572b"); // Genesis
consensus.BIP65Height = 1;
consensus.BIP66Height = 1;
@ -149,12 +149,8 @@ public: @@ -149,12 +149,8 @@ public:
assert(genesis.hashMerkleRoot == uint256S("0x677b0cc3aa49a118484f34bc1b1065e4ecdbd9a895e43d7fcd1c4b74beb492da"));
// Note that of those with the service bits flag, most only support a subset of possible options
vSeeds.emplace_back("seed-a.kevacoin.loshan.co.uk");
vSeeds.emplace_back("dnsseed.thrasher.io");
vSeeds.emplace_back("dnsseed.litecointools.com");
vSeeds.emplace_back("dnsseed.litecoinpool.org");
vSeeds.emplace_back("dnsseed.koin-project.com");
vSeeds.clear(); //JW remove this!
vSeeds.emplace_back("dnsseed.kevacoin.org");
vSeeds.emplace_back("dnsseed.kevacoin.com");
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,45); // K
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,5);
@ -175,31 +171,10 @@ public: @@ -175,31 +171,10 @@ public:
checkpointData = {
{
{ 1500, uint256S("0x841a2965955dd288cfa707a755d05a54e45f8bd476835ec9af4402a2b59a2967")},
{ 4032, uint256S("0x9ce90e427198fc0ef05e5905ce3503725b80e26afd35a987965fd7e3d9cf0846")},
{ 8064, uint256S("0xeb984353fc5190f210651f150c40b8a4bab9eeeff0b729fcb3987da694430d70")},
{ 16128, uint256S("0x602edf1859b7f9a6af809f1d9b0e6cb66fdc1d4d9dcd7a4bec03e12a1ccd153d")},
{ 23420, uint256S("0xd80fdf9ca81afd0bd2b2a90ac3a9fe547da58f2530ec874e978fce0b5101b507")},
{ 50000, uint256S("0x69dc37eb029b68f075a5012dcc0419c127672adb4f3a32882b2b3e71d07a20a6")},
{ 80000, uint256S("0x4fcb7c02f676a300503f49c764a89955a8f920b46a8cbecb4867182ecdb2e90a")},
{120000, uint256S("0xbd9d26924f05f6daa7f0155f32828ec89e8e29cee9e7121b026a7a3552ac6131")},
{161500, uint256S("0xdbe89880474f4bb4f75c227c77ba1cdc024991123b28b8418dbbf7798471ff43")},
{179620, uint256S("0x2ad9c65c990ac00426d18e446e0fd7be2ffa69e9a7dcb28358a50b2b78b9f709")},
{240000, uint256S("0x7140d1c4b4c2157ca217ee7636f24c9c73db39c4590c4e6eab2e3ea1555088aa")},
{383640, uint256S("0x2b6809f094a9215bafc65eb3f110a35127a34be94b7d0590a096c3f126c6f364")},
{409004, uint256S("0x487518d663d9f1fa08611d9395ad74d982b667fbdc0e77e9cf39b4f1355908a3")},
{456000, uint256S("0xbf34f71cc6366cd487930d06be22f897e34ca6a40501ac7d401be32456372004")},
{638902, uint256S("0x15238656e8ec63d28de29a8c75fcf3a5819afc953dcd9cc45cecc53baec74f38")},
{721000, uint256S("0x198a7b4de1df9478e2463bd99d75b714eab235a2e63e741641dc8a759a9840e5")},
}
};
chainTxData = ChainTxData{
// Data as of block 59c9b9d3fec105bdc716d84caa7579503d5b05b73618d0bf2d5fa639f780a011 (height 1353397).
1516406833, // * UNIX timestamp of last known number of transactions
19831879, // * total number of transactions between genesis and that timestamp
// (the tx=... number in the SetBestChain debug.log lines)
0.06 // * estimated number of transactions per second after that timestamp
};
}
@ -281,10 +256,7 @@ public: @@ -281,10 +256,7 @@ public:
vFixedSeeds.clear();
vSeeds.clear();
// nodes with support for servicebits filtering should be at the top
vSeeds.emplace_back("testnet-seed.litecointools.com");
vSeeds.emplace_back("seed-b.kevacoin.loshan.co.uk");
vSeeds.emplace_back("dnsseed-testnet.thrasher.io");
vSeeds.clear(); // JWU remove this!
vSeeds.emplace_back("testnet-seed.kevacoin.org");
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111);
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196);
@ -304,15 +276,10 @@ public: @@ -304,15 +276,10 @@ public:
checkpointData = (CCheckpointData) {
{
{2056, uint256S("17748a31ba97afdc9a4f86837a39d287e3e7c7290a08a1d816c5969c78a83289")},
}
};
chainTxData = ChainTxData{
// Data as of block a0afbded94d4be233e191525dc2d467af5c7eab3143c852c3cd549831022aad6 (height 343833)
1516406749,
794057,
0.01
};
}

8
src/rpc/mining.cpp

@ -441,19 +441,11 @@ UniValue getblocktemplate(const JSONRPCRequest& request) @@ -441,19 +441,11 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
if(!g_connman)
throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled");
/*
// JWU disable for now!!!
// JWU To make this work:
// 1. On connecting clint, use option: -connect=192.168.x.x
// 2. Make sure both have correct next work required in pow.cpp.
// 3. Use -maxtipage=24*60*60*n, where n is the number of days the tip has not
// been updated. Otherwise IsInitialBlockDownload will be true.
if (g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0)
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Kevacoin is not connected!");
if (IsInitialBlockDownload())
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Kevacoin is downloading blocks...");
*/
static unsigned int nTransactionsUpdatedLast;

Loading…
Cancel
Save