diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2020-12-22 16:44:53 -0800 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2020-12-26 13:30:08 -0800 |
commit | 537053336fbc1b633e7c99286c3e3492eaca1e9d (patch) | |
tree | dd7fbe9373a6129088a8143522c0bdcd7862d13a /test/functional/rpc_getpeerinfo_deprecation.py | |
parent | 02cf20b9f571474c939d18a8b9d6b5d22479a222 (diff) |
[rpc] Remove deprecated "addnode" field from getpeerinfo
Diffstat (limited to 'test/functional/rpc_getpeerinfo_deprecation.py')
-rwxr-xr-x | test/functional/rpc_getpeerinfo_deprecation.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test/functional/rpc_getpeerinfo_deprecation.py b/test/functional/rpc_getpeerinfo_deprecation.py index 340a66e12f..bde2058464 100755 --- a/test/functional/rpc_getpeerinfo_deprecation.py +++ b/test/functional/rpc_getpeerinfo_deprecation.py @@ -14,7 +14,6 @@ class GetpeerinfoDeprecationTest(BitcoinTestFramework): def run_test(self): self.test_banscore_deprecation() - self.test_addnode_deprecation() def test_banscore_deprecation(self): self.log.info("Test getpeerinfo by default no longer returns a banscore field") @@ -23,16 +22,6 @@ class GetpeerinfoDeprecationTest(BitcoinTestFramework): self.log.info("Test getpeerinfo returns banscore with -deprecatedrpc=banscore") assert "banscore" in self.nodes[1].getpeerinfo()[0].keys() - def test_addnode_deprecation(self): - self.restart_node(1, ["-deprecatedrpc=getpeerinfo_addnode"]) - self.connect_nodes(0, 1) - - self.log.info("Test getpeerinfo by default no longer returns an addnode field") - assert "addnode" not in self.nodes[0].getpeerinfo()[0].keys() - - self.log.info("Test getpeerinfo returns addnode with -deprecatedrpc=addnode") - assert "addnode" in self.nodes[1].getpeerinfo()[0].keys() - if __name__ == "__main__": GetpeerinfoDeprecationTest().main() |