aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_asmap.py
Commit message (Collapse)AuthorAgeFilesLines
* init: move asmap code earlier in init processJon Atack2020-03-041-2/+1
| | | | | | | | | | | | and update feature_asmap.py and test_runner.py This commit moves the asmap init.cpp code from the end of "Step 12: start node" to "Step 6: network initialization" to provide feedback on passing an -asmap config arg much more quickly. This change speeds up the feature_asmap.py functional test file from 60 to 5 seconds by accelerating the 2 tests that use `assert_start_raises_init_error`. Credit to Wladimir J. van der Laan for the suggestion.
* logging: asmap logging and #include fixupsJon Atack2020-03-041-3/+3
| | | | | | | | | - move asmap #includes to sorted positions in addrman and init (move-only) - remove redundant quotes in asmap InitError, update test - remove full stops from asmap logging to be consistent with debug logging, update tests
* test: add functional test for an empty, unparsable asmapJon Atack2020-03-041-2/+14
| | | | | This is now testable after separating the asmap finding and parsing checks in the previous commit.
* config: separate the asmap finding and parsing checksJon Atack2020-03-041-1/+1
| | | | and update the tests.
* config: enable passing -asmap an absolute file pathJon Atack2020-03-041-3/+15
| | | | | | | | - allow passing an absolute file path to the -asmap config arg - update the -asmap config help - add a functional test in feature_asmap.py
* test: add feature_asmap functional testsJon Atack2020-03-041-0/+83
to verify node behaviour and debug log when launching bitcoind in these cases: 1. `bitcoind` with no -asmap arg, using /16 prefix for IP bucketing 2. `bitcoind -asmap=<relative path>`, using the unit test skeleton asmap 3. `bitcoind -asmap/-asmap=` with no file specified, using the default asmap 4. `bitcoind -asmap` with no file specified, and a missing default asmap file The tests are order-independent. The slowest test (missing default asmap file) is placed last.