ninja
./bitcoin-seeder --help
Verify help text for new option
mkdir dirtest
./bitcoin-seeder -host=localhost -ns=blah.bitframe.org -port=8888 -mbox=info@bitframe.org --seederdir=dirtest
Let the seeder run for a while and then verify the files `dnsseed.dat`, `dnsseed.dump`, and `dnsstats.log` are written to the `dirtest/seeder` directory. Also verify the relative seederdir warning shows up.
./bitcoin-seeder -host=localhost -ns=blah.bitframe.org -port=8888 -mbox=info@bitframe.org
Verify the files `dnsseed.dat`, `dnsseed.dump`, and `dnsstats.log` are written to the `~/.bitcoin/seeder` directory.
Confirm the above works for testnet and regtest chain parameters and that the files are written to <path>/testnet/seeder/<file> and <path>/regtest/seeder/<file> respectively.
rm -r dirtest
./bitcoin-seeder -host=localhost -ns=blah.bitframe.org -port=8888 -mbox=info@bitframe.org --seederdir=dirtest
Verify that the seeder errors out with the error "Specified data directory <path>/dirtest/ does not exist.".