For two peers connecting to each other over CJDNS via addnode
, it results in 2 connections. We would expect them to determine they are connecting to each other and not duplicate the connection. getpeerinfo
gives the following:
inbound connection - "addr": "[xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:<port>]:<random_port>",
,
outbound connection - "addr": "xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:<port>",
Not sure if it would be possible to determine that the inbound connection is the same as our outbound, and don’t make an outbound if requested with that same cjdns address.