aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2020-08-12 13:57:13 -0700
committerAmiti Uttarwar <amiti@uttarwar.org>2020-09-21 19:01:29 -0700
commit395acfa83a5436790c1a722a5609ac9d48df235f (patch)
tree523f1a77f69da9ff7e44f4bc602bbaf2dc14aa2b /src/net.cpp
parent49c10a9ca40967d28ae16dfea9cccc6f3a6624a1 (diff)
[rpc] Add connection type to getpeerinfo RPC, update tests
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 2 insertions, 0 deletions
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<bool> &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