File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2
2
# Copyright (c) 2020 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
- """Test deprecation of getpeerinfo RPC banscore field ."""
5
+ """Test deprecation of getpeerinfo RPC fields ."""
6
6
7
7
from test_framework .test_framework import BitcoinTestFramework
8
8
9
9
10
- class GetpeerinfoBanscoreDeprecationTest (BitcoinTestFramework ):
10
+ class GetpeerinfoDeprecationTest (BitcoinTestFramework ):
11
11
def set_test_params (self ):
12
12
self .num_nodes = 2
13
13
self .extra_args = [[], ["-deprecatedrpc=banscore" ]]
14
14
15
15
def run_test (self ):
16
+ self .test_banscore_deprecation ()
17
+
18
+ def test_banscore_deprecation (self ):
16
19
self .log .info ("Test getpeerinfo by default no longer returns a banscore field" )
17
20
assert "banscore" not in self .nodes [0 ].getpeerinfo ()[0 ].keys ()
18
21
19
22
self .log .info ("Test getpeerinfo returns banscore with -deprecatedrpc=banscore" )
20
23
assert "banscore" in self .nodes [1 ].getpeerinfo ()[0 ].keys ()
21
24
22
-
23
25
if __name__ == "__main__" :
24
- GetpeerinfoBanscoreDeprecationTest ().main ()
26
+ GetpeerinfoDeprecationTest ().main ()
Original file line number Diff line number Diff line change 251
251
'feature_config_args.py' ,
252
252
'feature_settings.py' ,
253
253
'rpc_getdescriptorinfo.py' ,
254
- 'rpc_getpeerinfo_banscore_deprecation .py' ,
254
+ 'rpc_getpeerinfo_deprecation .py' ,
255
255
'rpc_help.py' ,
256
256
'feature_help.py' ,
257
257
'feature_shutdown.py' ,
You can’t perform that action at this time.
0 commit comments