1
1
#!/usr/bin/env python3
2
- # Copyright (c) 2014-2022 The Bitcoin Core developers
2
+ # Copyright (c) 2014-present The Bitcoin Core developers
3
3
# Distributed under the MIT software license, see the accompanying
4
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
"""Test node disconnect and ban behavior"""
@@ -18,7 +18,7 @@ def set_test_params(self):
18
18
self .supports_cli = False
19
19
20
20
def run_test (self ):
21
- self .log .info ("Connect nodes both way " )
21
+ self .log .info ("Connect nodes both ways " )
22
22
# By default, the test framework sets up an addnode connection from
23
23
# node 1 --> node0. By connecting node0 --> node 1, we're left with
24
24
# the two nodes being connected both ways.
@@ -84,7 +84,7 @@ def run_test(self):
84
84
assert_equal ("192.168.0.1/32" , listBeforeShutdown [2 ]['address' ])
85
85
86
86
self .log .info ("setban: test banning with absolute timestamp" )
87
- self .nodes [1 ].setban ("192.168.0.2" , "add" , old_time + 120 , True )
87
+ self .nodes [1 ].setban ("192.168.0.2" , "add" , old_time + 120 , absolute = True )
88
88
89
89
# Move time forward by 3 seconds so the fourth ban has expired
90
90
self .nodes [1 ].setmocktime (old_time + 3 )
@@ -113,7 +113,7 @@ def run_test(self):
113
113
114
114
# Clear ban lists
115
115
self .nodes [1 ].clearbanned ()
116
- self .log .info ("Connect nodes both way " )
116
+ self .log .info ("Connect nodes both ways " )
117
117
self .connect_nodes (0 , 1 )
118
118
self .connect_nodes (1 , 0 )
119
119
0 commit comments