bitcoind: remove banlist loader
Gmaxwell's banlist (https://people.xiph.org/~greg/banlist.cli.txt) is no longer maintained and hasn't been updated since 2 years.
This commit is contained in:
parent
7e94b7eddc
commit
8dc4858872
6 changed files with 4 additions and 3885 deletions
|
|
@ -214,7 +214,7 @@ let
|
|||
../modules/presets/secure-node.nix
|
||||
];
|
||||
tests.secure-node = true;
|
||||
tests.banlist-and-restart = true;
|
||||
tests.restart-bitcoind = true;
|
||||
|
||||
# Stop electrs from spamming the test log with 'WARN - wait until IBD is over' messages
|
||||
tests.stop-electrs = true;
|
||||
|
|
|
|||
|
|
@ -361,31 +361,18 @@ def _():
|
|||
assert_file_exists("secrets/lnd-wallet-password")
|
||||
|
||||
# Impure: restarts services
|
||||
@test("banlist-and-restart")
|
||||
@test("restart-bitcoind")
|
||||
def _():
|
||||
machine.wait_until_succeeds(log_has_string("bitcoind-import-banlist", "Importing node banlist"))
|
||||
assert_no_failure("bitcoind-import-banlist")
|
||||
|
||||
# Current time in µs
|
||||
pre_restart = succeed("date +%s.%6N").rstrip()
|
||||
|
||||
# Sanity-check system by restarting bitcoind.
|
||||
# This also restarts all services depending on bitcoind.
|
||||
succeed("systemctl restart bitcoind")
|
||||
|
||||
# Now that the bitcoind restart triggered a banlist import restart, check that
|
||||
# re-importing already banned addresses works
|
||||
machine.wait_until_succeeds(
|
||||
log_has_string(f"bitcoind-import-banlist --since=@{pre_restart}", "Importing node banlist")
|
||||
)
|
||||
assert_no_failure("bitcoind-import-banlist")
|
||||
|
||||
@test("regtest")
|
||||
def _():
|
||||
def enabled(unit):
|
||||
if unit in enabled_tests:
|
||||
# Wait because the unit might have been restarted in the preceding
|
||||
# 'banlist-and-restart' test
|
||||
# 'restart-bitcoind' test
|
||||
machine.wait_for_unit(unit)
|
||||
return True
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue