diff options
| author | Cory Fields <[email protected]> | 2016-04-19 00:04:58 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2016-09-08 12:24:06 -0400 |
| commit | bd72937dc462b86f0e84184b270a232f7bfaa8db (patch) | |
| tree | 7d36243302d3001bb36b9fdb27e8642568e814ac /src/rpc/net.cpp | |
| parent | net: move SendBufferSize/ReceiveFloodSize to CConnman (diff) | |
| download | discoin-bd72937dc462b86f0e84184b270a232f7bfaa8db.tar.xz discoin-bd72937dc462b86f0e84184b270a232f7bfaa8db.zip | |
net: move nLocalServices/nRelevantServices to CConnman
These are in-turn passed to CNode at connection time. This allows us to offer
different services to different peers (or test the effects of doing so).
Diffstat (limited to 'src/rpc/net.cpp')
| -rw-r--r-- | src/rpc/net.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 4fe582399..61b6b62c9 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -432,7 +432,8 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp) obj.push_back(Pair("version", CLIENT_VERSION)); obj.push_back(Pair("subversion", strSubVersion)); obj.push_back(Pair("protocolversion",PROTOCOL_VERSION)); - obj.push_back(Pair("localservices", strprintf("%016x", nLocalServices))); + if(g_connman) + obj.push_back(Pair("localservices", strprintf("%016x", g_connman->GetLocalServices()))); obj.push_back(Pair("localrelay", fRelayTxes)); obj.push_back(Pair("timeoffset", GetTimeOffset())); if(g_connman) |