mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-10 19:43:13 +02:00
net: recognize CJDNS from ParseNetwork()
This allows to use "cjdns" as an argument to the `getnodeaddresses` RPC and to the `-onlynet=` parameter.
This commit is contained in:
@@ -228,8 +228,8 @@ class NetTest(BitcoinTestFramework):
|
||||
assert_equal(res[0]["port"], 8333)
|
||||
assert_equal(res[0]["services"], P2P_SERVICES)
|
||||
|
||||
# Test for the absence of onion and I2P addresses.
|
||||
for network in ["onion", "i2p"]:
|
||||
# Test for the absence of onion, I2P and CJDNS addresses.
|
||||
for network in ["onion", "i2p", "cjdns"]:
|
||||
assert_equal(self.nodes[0].getnodeaddresses(0, network), [])
|
||||
|
||||
# Test invalid arguments.
|
||||
|
Reference in New Issue
Block a user