aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-12-04 17:09:21 +0200
committerRiccardo Spagni <ric@spagni.net>2018-12-04 17:09:21 +0200
commit11d86f600854efafcaf903ec6a285822584320a8 (patch)
tree0fc7b683b3e5b7dc683088f96117e4c743af13c4 /src/rpc/core_rpc_server.h
parentMerge pull request #4854 (diff)
parentDon't cache nettype in core_rpc_server use m_core (diff)
downloadmonero-11d86f600854efafcaf903ec6a285822584320a8.tar.xz
Merge pull request #4859
6f2497bc Don't cache nettype in core_rpc_server use m_core (doy-lee)
Diffstat (limited to 'src/rpc/core_rpc_server.h')
-rw-r--r--src/rpc/core_rpc_server.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpc/core_rpc_server.h b/src/rpc/core_rpc_server.h
index 8ada0af15..6a616e2e0 100644
--- a/src/rpc/core_rpc_server.h
+++ b/src/rpc/core_rpc_server.h
@@ -70,10 +70,9 @@ namespace cryptonote
bool init(
const boost::program_options::variables_map& vm,
const bool restricted,
- const network_type nettype,
const std::string& port
);
- network_type nettype() const { return m_nettype; }
+ network_type nettype() const { return m_core.get_nettype(); }
CHAIN_HTTP_TO_MAP2(connection_context); //forward http requests to uri map