aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-04-03 20:21:28 +0200
committerJon Atack <jon@atack.com>2021-04-07 12:57:07 +0200
commit3bb6e7b6555f3c8743a697cb9d509620714dc483 (patch)
treeb93c6b0619e9670262ae143b3dbe6b1a73e2d9c8 /test
parentad4bf8a94594e7fe424e409ba9474d91584bb78c (diff)
rpc: add network field to rpc getnodeaddresses
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/rpc_net.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/rpc_net.py b/test/functional/rpc_net.py
index 9adb32c3c5..16d7958712 100755
--- a/test/functional/rpc_net.py
+++ b/test/functional/rpc_net.py
@@ -195,7 +195,7 @@ class NetTest(BitcoinTestFramework):
for i in range(10000):
first_octet = i >> 8
second_octet = i % 256
- a = "{}.{}.1.1".format(first_octet, second_octet)
+ a = "{}.{}.1.1".format(first_octet, second_octet) # IPV4
imported_addrs.append(a)
self.nodes[0].addpeeraddress(a, 8333)
@@ -212,6 +212,7 @@ class NetTest(BitcoinTestFramework):
assert_equal(a["services"], NODE_NETWORK | NODE_WITNESS)
assert a["address"] in imported_addrs
assert_equal(a["port"], 8333)
+ assert_equal(a["network"], "ipv4")
node_addresses = self.nodes[0].getnodeaddresses(1)
assert_equal(len(node_addresses), 1)