Hard code `testnet_seeds`Edit the `CTestNetParams` class in `seeder/mainchainparams.cpp` to the following: `static const std::string testnet_seeds[] = {"localhost", ""};`have `vSeeds.emplace_back("localhost");` as the only seed.
makeninja check
./bitcoind --printtoconsole --testnet -whitelist=127.0.0.1 -listen=1 -connect=0 -debug=net -datadir=<New data dir>
./bitcoin-seeder -h localhost -n blah.bitframe.org -p 8888 -m info@bitframe.org --testnet -wipeban -wipeignore
The seeder should attempt to connect to the localhost node. The node
should then be banned because its chain is not up to date and it replied
with an empty header message.
0/2 available (0 tried in 0s, 0 new, 0 active), 1 banned; 0 DNS requests, 0 db queries
The seeder should output something like the above line.
Assuming you're testnet chain is up-to-date:
./bitcoind --printtoconsole --testnet -whitelist=127.0.0.1 -listen=1 -connect=0 -debug=net
./bitcoin-seeder -h localhost -n blah.bitframe.org -p 8888 -m info@bitframe.org --testnet -wipeban -wipeignore
The seeder should attempt to connect to the localhost node. The node
should reply with a non-empty headers message and then continue to
receive an addr message from the seeder. It should then start
connecting to various other addresses received from the seeder.
Repeat the above for a node that is partially sync'd (but not all the way to the most recent checkpoint) 0/2 available (1 tried in 2s, 0 new, 1 active), 0 banned; 0 DNS requests, 0 db queries
Seeder should output something like the above line after being successful.