Skip to content

Commit 684da97

Browse files
committed
p2p, bugfix: detect addnode cjdns peers in GetAddedNodeInfo()
Addnode (manual) 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
1 parent 2cedb42 commit 684da97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2832,7 +2832,7 @@ std::vector<AddedNodeInfo> CConnman::GetAddedNodeInfo(bool include_connected) co
28322832
}
28332833

28342834
for (const auto& addr : lAddresses) {
2835-
CService service(LookupNumeric(addr.m_added_node, GetDefaultPort(addr.m_added_node)));
2835+
CService service{MaybeFlipIPv6toCJDNS(LookupNumeric(addr.m_added_node, GetDefaultPort(addr.m_added_node)))};
28362836
AddedNodeInfo addedNode{addr, CService(), false, false};
28372837
if (service.IsValid()) {
28382838
// strAddNode is an IP:port

0 commit comments

Comments
 (0)