aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_disconnect_ban.py
diff options
context:
space:
mode:
authorJon Layton <me@jonl.io>2018-11-13 13:42:36 -0500
committerMarcoFalke <falke.marco@gmail.com>2018-11-13 14:24:40 -0500
commitfa0815c3005c861ba94b96412e7997c25e7f6788 (patch)
tree2208715a790996a7427ee730b1b60fed3d6c69a3 /test/functional/p2p_disconnect_ban.py
parentc651265c934c84c683aa054f2a456b12acc41590 (diff)
downloadbitcoin-fa0815c3005c861ba94b96412e7997c25e7f6788.tar.xz
rpc: Correctly name arguments
Diffstat (limited to 'test/functional/p2p_disconnect_ban.py')
-rwxr-xr-xtest/functional/p2p_disconnect_ban.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/p2p_disconnect_ban.py b/test/functional/p2p_disconnect_ban.py
index 67f24d6bff..1b11a2a294 100755
--- a/test/functional/p2p_disconnect_ban.py
+++ b/test/functional/p2p_disconnect_ban.py
@@ -22,7 +22,7 @@ class DisconnectBanTest(BitcoinTestFramework):
self.log.info("setban: successfully ban single IP address")
assert_equal(len(self.nodes[1].getpeerinfo()), 2) # node1 should have 2 connections to node0 at this point
- self.nodes[1].setban("127.0.0.1", "add")
+ self.nodes[1].setban(subnet="127.0.0.1", command="add")
wait_until(lambda: len(self.nodes[1].getpeerinfo()) == 0, timeout=10)
assert_equal(len(self.nodes[1].getpeerinfo()), 0) # all nodes must be disconnected at this point
assert_equal(len(self.nodes[1].listbanned()), 1)