diff options
| author | Pieter Wuille <[email protected]> | 2017-01-06 07:47:05 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-01-06 08:37:47 -0800 |
| commit | a55716abe5662ec74c2f8af93023f1e7cca901fc (patch) | |
| tree | e216baea04fc64b78e69a24ca404cff0241951b6 /src/rpc/net.cpp | |
| parent | Merge #9138: Improve fee estimation (diff) | |
| parent | RPC help documentation for addnode peerinfo. (diff) | |
| download | discoin-a55716abe5662ec74c2f8af93023f1e7cca901fc.tar.xz discoin-a55716abe5662ec74c2f8af93023f1e7cca901fc.zip | |
Merge #9319: Break addnode out from the outbound connection limits.
032ba3f RPC help documentation for addnode peerinfo. (Gregory Maxwell)
90f13e1 Add release notes for addnode changes. (Gregory Maxwell)
50bd12c Break addnode out from the outbound connection limits. (Gregory Maxwell)
Diffstat (limited to 'src/rpc/net.cpp')
| -rw-r--r-- | src/rpc/net.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 632514fc8..2af00c1de 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -92,6 +92,7 @@ UniValue getpeerinfo(const JSONRPCRequest& request) " \"version\": v, (numeric) The peer version, such as 7001\n" " \"subver\": \"/Satoshi:0.8.5/\", (string) The string version\n" " \"inbound\": true|false, (boolean) Inbound (true) or Outbound (false)\n" + " \"addnode\": true|false, (boolean) Whether connection was due to addnode and is using an addnode slot\n" " \"startingheight\": n, (numeric) The starting height (block) of the peer\n" " \"banscore\": n, (numeric) The ban score\n" " \"synced_headers\": n, (numeric) The last header we have in common with this peer\n" @@ -152,6 +153,7 @@ UniValue getpeerinfo(const JSONRPCRequest& request) // their ver message. obj.push_back(Pair("subver", stats.cleanSubVer)); obj.push_back(Pair("inbound", stats.fInbound)); + obj.push_back(Pair("addnode", stats.fAddnode)); obj.push_back(Pair("startingheight", stats.nStartingHeight)); if (fStateStats) { obj.push_back(Pair("banscore", statestats.nMisbehavior)); |