From b67dcee92fb43fe876763d1f0e4f63c488b15223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Softwareb=C3=BCro=20Krekeler?= Date: Tue, 25 Dec 2018 14:00:58 +0100 Subject: [PATCH] Seednodes and Checkpoints --- contrib/seeds/README.md | 9 +++++++++ contrib/seeds/nodes_main.txt | 5 +++++ src/chainparams.cpp | 6 +++--- src/chainparamsseeds.h | 6 ++++++ 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/contrib/seeds/README.md b/contrib/seeds/README.md index 48c2f02dcf042..8cdf1d2e0f675 100644 --- a/contrib/seeds/README.md +++ b/contrib/seeds/README.md @@ -16,3 +16,12 @@ The seeds compiled into the release are created from the current masternode list Ubuntu: sudo apt-get install python3-dnspython + +### Current usage +Compilation computer, ~/documentchain/contrib/seeds$ +cp nodes_main.txt ori.txt +vi nodes_main.txt +python3 generate-seeds.py ./ +Code computer: copy result to chainparamsseeds.h +rm nodes_main.txt +mv ori.txt nodes_main.txt diff --git a/contrib/seeds/nodes_main.txt b/contrib/seeds/nodes_main.txt index 974a27b8bc563..a5972508c3485 100644 --- a/contrib/seeds/nodes_main.txt +++ b/contrib/seeds/nodes_main.txt @@ -1,5 +1,10 @@ 85.214.65.60:41319 +91.200.100.209:41319 95.216.143.13:41319 +104.140.22.62:41319 +104.206.241.183:41319 107.172.248.127:41319 +107.174.203.97:41319 159.69.189.185:41319 +185.216.214.161:41319 195.201.226.128:41319 \ No newline at end of file diff --git a/src/chainparams.cpp b/src/chainparams.cpp index ae0d9815621cb..985a0463628f6 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -236,7 +236,7 @@ class CMainParams : public CChainParams { nExtCoinType = 5; // fixed seed node, use contrib/seeds/generate-seeds.py to edit pnSeed6_main and pnSeed6_test - vFixedSeeds = std::vector(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main)); // vFixedSeeds.clear(); + vFixedSeeds = std::vector(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main)); fMiningRequiresPeers = true; fDefaultConsistencyChecks = false; @@ -258,8 +258,8 @@ class CMainParams : public CChainParams { ( 4600, uint256S("0x00003e6d58a4974170d74f8ccb55aca3afeca21fc6a25789c64a88ac3b44c239")) ( 8410, uint256S("0x000000dcc96e66827c73c603c96683bb53d536e878fa282ef3e1a30ee42c4121")) ( 15000, uint256S("0x0000024a04c4ac9eb28385fa0a18b6911b7ee22c64c3af476cd72bcf27fa136f")) - ( 17600, uint256S("0x0000b0fabbc7116c54ca34d85424778a41643febe205d1486779573f975e4ae5")) - ( 24986, uint256S("0x00000425064314521ecb0a68e75d2389ecaf69273d98a594362fa514fb6e204c")) + ( 20013, uint256S("0x000000465d652bda5d5746ec620b0926de583a622011b61404af02fd07176236")) + ( 26990, uint256S("0x00000ac7439f65441970eed887d5bad2ecf6a1bbde4f39a4a21f50aaa648d049")) }; chainTxData = ChainTxData{ diff --git a/src/chainparamsseeds.h b/src/chainparamsseeds.h index 079bf1a931cec..14e14f3e486c6 100644 --- a/src/chainparamsseeds.h +++ b/src/chainparamsseeds.h @@ -9,11 +9,17 @@ */ static SeedSpec6 pnSeed6_main[] = { {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x55,0xd6,0x41,0x3c}, 41319}, + {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x5b,0xc8,0x64,0xd1}, 41319}, {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x5f,0xd8,0x8f,0x0d}, 41319}, + {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x68,0x8c,0x16,0x3e}, 41319}, + {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x68,0xce,0xf1,0xb7}, 41319}, {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x6b,0xac,0xf8,0x7f}, 41319}, + {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x6b,0xae,0xcb,0x61}, 41319}, {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x9f,0x45,0xbd,0xb9}, 41319}, + {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xb9,0xd8,0xd6,0xa1}, 41319}, {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xc3,0xc9,0xe2,0x80}, 41319} }; + static SeedSpec6 pnSeed6_test[] = { {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x55,0xd6,0x41,0x3c}, 41419}, {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x5f,0xd8,0x8f,0x0d}, 41419},