diff options
| author | Luke Dashjr <[email protected]> | 2016-10-23 05:35:52 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2016-10-24 10:23:58 +0000 |
| commit | 54cf99745ffa8f437c63f9f86c5c9d5e6bb04028 (patch) | |
| tree | abaf6e9784f480f2218134d4cb4e71586a5a2acf /src/rpc/misc.cpp | |
| parent | Overhaul network activity toggle (diff) | |
| download | discoin-54cf99745ffa8f437c63f9f86c5c9d5e6bb04028.tar.xz discoin-54cf99745ffa8f437c63f9f86c5c9d5e6bb04028.zip | |
RPC/Net: Use boolean consistently for networkactive, and remove from getinfo
Diffstat (limited to 'src/rpc/misc.cpp')
| -rw-r--r-- | src/rpc/misc.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index 4bfcc9387..5afcf6353 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -89,10 +89,8 @@ UniValue getinfo(const UniValue& params, bool fHelp) #endif obj.push_back(Pair("blocks", (int)chainActive.Height())); obj.push_back(Pair("timeoffset", GetTimeOffset())); - if (g_connman) { - obj.push_back(Pair("networkactive", g_connman->GetNetworkActive())); + if(g_connman) obj.push_back(Pair("connections", (int)g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL))); - } obj.push_back(Pair("proxy", (proxy.IsValid() ? proxy.proxy.ToStringIPPort() : string()))); obj.push_back(Pair("difficulty", (double)GetDifficulty())); obj.push_back(Pair("testnet", Params().TestnetToBeDeprecatedFieldRPC())); |