diff --git a/contrib/seeds/README.md b/contrib/seeds/README.md --- a/contrib/seeds/README.md +++ b/contrib/seeds/README.md @@ -1,7 +1,8 @@ # Seeds Utility to generate the seeds.txt list that is compiled into the client -(see [src/chainparamsseeds.h](/src/chainparamsseeds.h) and other utilities in [contrib/seeds](/contrib/seeds)). +(see [src/networks/abc/chainparamsseeds.cpp](/src/networks/abc/chainparamsseeds.cpp) +and other utilities in [contrib/seeds](/contrib/seeds)). Be sure to update `PATTERN_AGENT` in `makeseeds.py` to include the current version, and remove old versions as necessary (at a minimum when GetDesireableServiceFlags @@ -14,9 +15,9 @@ `seeds_main.txt` and the `dnsseed.dump` file from the testnet seeder has been copied to `seeds_test.txt`. - python3 makeseeds.py < seeds_main.txt > nodes_main.txt - python3 makeseeds.py < seeds_test.txt > nodes_test.txt - python3 generate-seeds.py . > ../../src/chainparamsseeds.h + python3 makeseeds.py < seeds_main.txt > abc/nodes_main.txt + python3 makeseeds.py < seeds_test.txt > abc/nodes_test.txt + python3 generate-seeds.py abc > ../../src/networks/abc/chainparamsseeds.cpp ## Dependencies diff --git a/contrib/seeds/nodes_main.txt b/contrib/seeds/abc/nodes_main.txt rename from contrib/seeds/nodes_main.txt rename to contrib/seeds/abc/nodes_main.txt diff --git a/contrib/seeds/nodes_test.txt b/contrib/seeds/abc/nodes_test.txt rename from contrib/seeds/nodes_test.txt rename to contrib/seeds/abc/nodes_test.txt diff --git a/contrib/seeds/nodes_main.txt b/contrib/seeds/bchn/nodes_main.txt rename from contrib/seeds/nodes_main.txt rename to contrib/seeds/bchn/nodes_main.txt diff --git a/contrib/seeds/nodes_test.txt b/contrib/seeds/bchn/nodes_test.txt rename from contrib/seeds/nodes_test.txt rename to contrib/seeds/bchn/nodes_test.txt diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -426,6 +426,7 @@ endfunction() add_network_sources(NETWORK_SOURCES + chainparamsseeds.cpp checkpoints.cpp network.cpp ) @@ -440,7 +441,6 @@ cashaddrenc.cpp chainparams.cpp chainparamsconstants.cpp - chainparamsseeds.cpp config.cpp consensus/merkle.cpp coins.cpp diff --git a/src/chainparamsseeds.cpp b/src/networks/abc/chainparamsseeds.cpp rename from src/chainparamsseeds.cpp rename to src/networks/abc/chainparamsseeds.cpp diff --git a/src/chainparamsseeds.cpp b/src/networks/bchn/chainparamsseeds.cpp rename from src/chainparamsseeds.cpp rename to src/networks/bchn/chainparamsseeds.cpp