`checkpoint` refers to the chain's most recent checkpoint found in `chainparams.cpp`.
Edit `chainparams.cpp` such that the only seed for `TestNet` is `localhost`.
ninja
mkdir testdir
./bitcoind --datadir=testdir --testnet
Allow the node to finish IBDing
./bitcoin-cli --testnet --datadir=testdir stop
rm testdir/testnet3/peers.dat
./bitcoind -whitelist=127.0.0.1 --datadir=testdir -listen=1 -connect=0 -debug=net -datadir=testdir
./bitcoin-seeder -host=localhost -ns=blah.bitframe.org -port=8888 -mbox=info@bitframe.org --testnet --wipeban --wipeignore
Output should eventually become:
0/1 available (0 tried in 2s, 0 new, 1 active), 1 banned; 0 DNS requests, 0 db queries
Stop the seeder.
./bitcoin-cli --testnet --datadir=testdir invalidateblock <checkpoint->next->next hash>
./bitcoin-seeder -host=localhost -ns=blah.bitframe.org -port=8888 -mbox=info@bitframe.org --testnet --wipeban --wipeignore
Output should eventually become:
0/1 available (0 tried in 2s, 0 new, 1 active), 1 banned; 0 DNS requests, 0 db queries
Stop the seeder.
./bitcoin-cli --testnet --datadir=testdir invalidateblock <checkpoint->next hash>
./bitcoin-seeder -host=localhost -ns=blah.bitframe.org -port=8888 -mbox=info@bitframe.org --testnet --wipeban --wipeignore
Output should eventually become:
0/0 available (0 tried in 2s, 0 new, 0 active), 2 banned; 0 DNS requests, 0 db queries
Stop the seeder.
./bitcoin-cli --testnet --datadir=testdir invalidateblock <checkpoint->prev hash>
./bitcoin-seeder -host=localhost -ns=blah.bitframe.org -port=8888 -mbox=info@bitframe.org --testnet --wipeban --wipeignore
Output should eventually become:
0/0 available (0 tried in 2s, 0 new, 0 active), 2 banned; 0 DNS requests, 0 db queries
Stop the seeder.
./bitcoin-cli --testnet --datadir=testdir reconsiderblock <checkpoint->next hash>
./bitcoin-seeder -host=localhost -ns=blah.bitframe.org -port=8888 -mbox=info@bitframe.org --testnet --wipeban --wipeignore
Output should eventually become:
0/1 available (0 tried in 2s, 0 new, 1 active), 1 banned; 0 DNS requests, 0 db queries
Stop the seeder.
Note: To speed up testing, reduce `MIN_RETRY` in `seeder/db.h` to `45` and line 201 in `seeder/main.cpp` to `timeSinceLastSuccess > 300) {`.
Undue the changes any speed up changes made.
mkdir ibd
./bitcoind --testnet -whitelist=127.0.0.0 -debug=net -datadir=ibd
./bitcoin-seeder -host=localhost -ns=blah.bitframe.org -port=8888 -mbox=info@bitframe.org --testnet --wipeban --wipeignore
Output should start as
0/2 available (0 tried in 0s, 0 new, 2 active), 0 banned; 0 DNS requests, 0 db queries
And eventually end as
0/2 available (0 tried in 2s, 0 new, 2 active), 0 banned; 0 DNS requests, 0 db queries
after IBD finishes assuming your machine can complete IBD within two days.