diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2023-05-05 11:14:51 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2023-12-02 22:03:08 +0100 |
commit | 3ea54e5db7d53da5afa321e1800c29aa269dd3b3 (patch) | |
tree | 3348fa7d97f62e00b67a422fae8cd8989ac06b6f /test/functional | |
parent | 28d7e55dff826a69f3f8e58139dbffb611cc5947 (diff) |
net: Add continuous ASMap health check logging
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/feature_asmap.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/feature_asmap.py b/test/functional/feature_asmap.py index 9cff8042a8..ae483fe449 100755 --- a/test/functional/feature_asmap.py +++ b/test/functional/feature_asmap.py @@ -111,6 +111,14 @@ class AsmapTest(BitcoinTestFramework): self.node.assert_start_raises_init_error(extra_args=['-asmap'], expected_msg=msg) os.remove(self.default_asmap) + def test_asmap_health_check(self): + self.log.info('Test bitcoind -asmap logs ASMap Health Check with basic stats') + shutil.copyfile(self.asmap_raw, self.default_asmap) + msg = "ASMap Health Check: 2 clearnet peers are mapped to 1 ASNs with 0 peers being unmapped" + with self.node.assert_debug_log(expected_msgs=[msg]): + self.start_node(0, extra_args=['-asmap']) + os.remove(self.default_asmap) + def run_test(self): self.node = self.nodes[0] self.datadir = self.node.chain_path @@ -124,6 +132,7 @@ class AsmapTest(BitcoinTestFramework): self.test_asmap_interaction_with_addrman_containing_entries() self.test_default_asmap_with_missing_file() self.test_empty_asmap() + self.test_asmap_health_check() if __name__ == '__main__': |