From 678dbb32da97fc2ab201b7fa0f829c20904eac94 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 22 Oct 2020 01:51:55 -0500 Subject: [PATCH] docs: Add JSON-RPC API getpeerinfo missing fields. --- docs/json_rpc_api.mediawiki | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/json_rpc_api.mediawiki b/docs/json_rpc_api.mediawiki index 2b4e61e8..a3c97f52 100644 --- a/docs/json_rpc_api.mediawiki +++ b/docs/json_rpc_api.mediawiki @@ -1660,10 +1660,13 @@ of the best block. |- !Returns |(json array) +: id: (numeric) a unique node ID. : addr: (string) the ip address and port of the peer. +: addrlocal: (string) local address. : services: (string) the services supported by the peer. -: lastrecv: (numeric) time the last message was received in seconds since 1 Jan 1970 GMT. +: relaytxes: (boolean) peer has requested transactions be relayed to it. : lastsend: (numeric) time the last message was sent in seconds since 1 Jan 1970 GMT. +: lastrecv: (numeric) time the last message was received in seconds since 1 Jan 1970 GMT. : bytessent: (numeric) total bytes sent. : bytesrecv: (numeric) total bytes received. : conntime: (numeric) time the connection was made in seconds since 1 Jan 1970 GMT. @@ -1674,12 +1677,13 @@ of the best block. : inbound: (boolean) whether or not the peer is an inbound connection. : startingheight: (numeric) the latest block height the peer knew about when the connection was established. : currentheight: (numeric) the latest block height the peer is known to have relayed since connected. +: banscore: (numeric) the ban score. : syncnode: (boolean) whether or not the peer is the sync peer. -[{"addr": "host:port", "services": "00000001", "lastrecv": n, "lastsend": n, "bytessent": n, "bytesrecv": n, "conntime": n, "pingtime": n, "pingwait": n, "version": n, "subver": "useragent", "inbound": true_or_false, "startingheight": n, "currentheight": n, "syncnode": true_or_false }, ...] +[{"id": n, "addr": "host:port", "addrlocal": "host:port", "services": "00000001", "relaytxes": true_or_false, "lastsend": n, "lastrecv": n, "bytessent": n, "bytesrecv": n, "conntime": n, "pingtime": n.nnn, "pingwait": n.nnn, "version": n, "subver": "useragent", "inbound": true_or_false, "startingheight": n, "currentheight": n, "banscore": n, "syncnode": true_or_false }, ...] |- !Example Return -|[{"addr": "178.172.xxx.xxx:9108", "services": "00000001", "lastrecv": 1388183523, "lastsend": 1388185470, "bytessent": 287592965, "bytesrecv": 780340, "conntime": 1388182973, "pingtime": 405551, "pingwait": 183023, "version": 70001, "subver": "/dcrd:0.4.0/", "inbound": false, "startingheight": 276921, "currentheight": 276955, "syncnode": true }, ...] +|[{"id": 1, "addr": "178.172.xxx.xxx:9108", "addrlocal": "192.168.x.x:54349", "services": "00000001", "relaytxes": true, "lastsend": 1388185470, "lastrecv": 1388183523, "bytessent": 287592965, "bytesrecv": 780340, "conntime": 1388182973, "pingtime": 405551, "pingwait": 183023, "version": 70001, "subver": "/dcrd:0.4.0/", "inbound": false, "startingheight": 276921, "currentheight": 276955, "banscore": 0, "syncnode": true }, ...] |} ----