Addnode peers connected to us via the cjdns network are currently not detected by CConnman::GetAddedNodeInfo()
, i.e. fConnected
is always false. This causes the following issues:
-
RPC
getaddednodeinfo
incorrectly shows them as not connected -
CConnman::ThreadOpenAddedConnections()
continually retries to connect them
Fix the issue and add a unit regression test. Extracted from #28248. Suggest running the test with:
./src/test/test_bitcoin -t net_peer_connection_tests -l test_suite