Page MenuHomePhabricator

[QA] Allow addrman loopback tests (add debug option -addrmantest)
ClosedPublic

Authored by Fabien on Jan 23 2019, 10:40.

Details

Summary

This add a new debug option which will be later used to test network
limited nodes.

Partial backport of core PR10387 (commit fa999af)

Test Plan
make check

../configure --enable-debug && make
./src/bitcoind --help -help-debug

Check the -addrmantest argument documentation is correct

./src/bitcoind -regtest -datadir=<some_non_default_data_dir> &
./src/bitcoind -regtest -debug=all -addnode=127.0.0.1 -addrmantest=1 &
grep AdvertiseLocal ~/.bitcoin/regtest/debug.log

Check the grep outputs something containing:

AdvertiseLocal: advertising address 127.0.0.1

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable