File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ Value getpeerinfo(const Array& params, bool fHelp)
79
79
" \n bResult:\n "
80
80
" [\n "
81
81
" {\n "
82
+ " \" id\" : n, (numeric) Peer index\n "
82
83
" \" addr\" :\" host:port\" , (string) The ip address and port of the peer\n "
83
84
" \" addrlocal\" :\" ip:port\" , (string) local address\n "
84
85
" \" services\" :\" xxxxxxxxxxxxxxxx\" , (string) The services offered\n "
@@ -113,6 +114,7 @@ Value getpeerinfo(const Array& params, bool fHelp)
113
114
Object obj;
114
115
CNodeStateStats statestats;
115
116
bool fStateStats = GetNodeStateStats (stats.nodeid , statestats);
117
+ obj.push_back (Pair (" id" , stats.nodeid ));
116
118
obj.push_back (Pair (" addr" , stats.addrName ));
117
119
if (!(stats.addrLocal .empty ()))
118
120
obj.push_back (Pair (" addrlocal" , stats.addrLocal ));
You can’t perform that action at this time.
0 commit comments