From 395acfa83a5436790c1a722a5609ac9d48df235f Mon Sep 17 00:00:00 2001 From: Amiti Uttarwar Date: Wed, 12 Aug 2020 13:57:13 -0700 Subject: [rpc] Add connection type to getpeerinfo RPC, update tests --- src/net.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/net.cpp') diff --git a/src/net.cpp b/src/net.cpp index 15675a68ad..5b533d7d17 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -602,6 +602,8 @@ void CNode::copyStats(CNodeStats &stats, const std::vector &m_asmap) // Leave string empty if addrLocal invalid (not filled in yet) CService addrLocalUnlocked = GetAddrLocal(); stats.addrLocal = addrLocalUnlocked.IsValid() ? addrLocalUnlocked.ToString() : ""; + + stats.m_conn_type_string = ConnectionTypeAsString(); } #undef X -- cgit v1.2.3