File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,22 @@ def set_test_params(self):
15
15
self .extra_args = [["-dnsseed=1" ]]
16
16
17
17
def run_test (self ):
18
+ self .init_arg_tests ()
18
19
self .existing_outbound_connections_test ()
19
20
self .existing_block_relay_connections_test ()
20
21
22
+ def init_arg_tests (self ):
23
+ fakeaddr = "fakenodeaddr.fakedomain.invalid."
24
+
25
+ self .log .info ("Check that setting -connect disables -dnsseed by default" )
26
+ self .nodes [0 ].stop_node ()
27
+ with self .nodes [0 ].assert_debug_log (expected_msgs = ["DNS seeding disabled" ]):
28
+ self .start_node (0 , [f"-connect={ fakeaddr } " ])
29
+
30
+ self .log .info ("Check that running -connect and -dnsseed means DNS logic runs." )
31
+ with self .nodes [0 ].assert_debug_log (expected_msgs = ["Loading addresses from DNS seed" ], timeout = 12 ):
32
+ self .restart_node (0 , [f"-connect={ fakeaddr } " , "-dnsseed=1" ])
33
+
21
34
def existing_outbound_connections_test (self ):
22
35
# Make sure addrman is populated to enter the conditional where we
23
36
# delay and potentially skip DNS seeding.
You can’t perform that action at this time.
0 commit comments