Apparently CJDNS network does not work with Tor on mainnet.
Expected behavior
Both networks should work.
Actual behavior
When monitoring connections via ./src/bitcoin-cli -netinfo 4
, this does not show any CJDNS peers if Tor is enabled.
If the Tor proxy is commented out in the configuration file, the CJDNS peers will be connected.
To reproduce
Install Tor, I2P and CJDNS services on Fedora / Debian.
Add the following items to bitcoin.conf
file:
0[main]
1proxy=127.0.0.1:9050
2cjdnsreachable=1
3i2pacceptincoming=1
4i2psam=127.0.0.1:7656
5addnode=fcc7:be49:ccd1:dc91:3125:f0da:457d:8ce
6addnode=fc32:17ea:e415:c3bf:9808:149d:b5a2:c9aa
7addnode=sedndhv5vpcgdmykyi5st4yqhdxl3hpdtglta4do435wupahhx6q.b32.i2p:0
8addnode=zsxwyo6qcn3chqzwxnseusqgsnuw3maqnztkiypyfxtya4snkoka.b32.i2p:0
9addnode=wwbw7nqr3ahkqv62cuqfwgtneekvvpnuc4i4f6yo7tpoqjswvcwa.b32.i2p:0
10addnode=opnyfyeiibe5qo5a3wbxzbb4xdiagc32bbce46owmertdknta5mi7uyd.onion:8333
11addnode=rp7k2go3s5lyj3fnj6zn62ktarlrsft2ohlsxkyd7v3e3idqyptvread.onion:8333
12addnode=xqt25cobm5zqucac3634zfght72he6u3eagfyej5ellbhcdgos7t2had.onion:8333
Run Bicoin Core. With the configuration above, there can be IPv4, onion and I2P peers, but not CJDNS.
Stop Bitcoin Core, comment out proxy=127.0.0.1:9050
and restart it. There can be IPv4, CJDNS and I2P
System information
Bitcoin Core was compiled from master (last commit ee8c9971256
). Ran on Fedora Linux 35.
Same behavior observed on Debian 11.