We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa6aa40 commit 4444de1Copy full SHA for 4444de1
test/functional/p2p_disconnect_ban.py
@@ -102,7 +102,9 @@ def run_test(self):
102
assert_equal(ban["ban_duration"], 120)
103
assert_equal(ban["time_remaining"], 117)
104
105
- self.restart_node(1)
+ # Keep mocktime, to avoid ban expiry when restart takes longer than
106
+ # time_remaining
107
+ self.restart_node(1, extra_args=[f"-mocktime={old_time+4}"])
108
109
listAfterShutdown = self.nodes[1].listbanned()
110
assert_equal("127.0.0.0/24", listAfterShutdown[0]['address'])
0 commit comments