aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/rpc.h
diff options
context:
space:
mode:
authordoy-lee <doylet@protonmail.com>2018-11-16 15:32:05 +1100
committerdoy-lee <doylet@protonmail.com>2018-11-16 15:32:05 +1100
commit6f2497bc7ac1865329527947afd6dacb0b1b6a06 (patch)
tree605f1a27ccba2d2ef738df809bbe4284f0246c27 /src/daemon/rpc.h
parentMerge pull request #4842 (diff)
downloadmonero-6f2497bc7ac1865329527947afd6dacb0b1b6a06.tar.xz
Don't cache nettype in core_rpc_server use m_core
This can go out of sync with m_core's nettype if you run in fakechain mode since entering fakechain mode is done through code not the command line and core_rpc_server only looks at the command line to figure out the nettype.
Diffstat (limited to 'src/daemon/rpc.h')
-rw-r--r--src/daemon/rpc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/daemon/rpc.h b/src/daemon/rpc.h
index 9621b0d01..37dffc097 100644
--- a/src/daemon/rpc.h
+++ b/src/daemon/rpc.h
@@ -54,7 +54,6 @@ public:
, t_core & core
, t_p2p & p2p
, const bool restricted
- , const cryptonote::network_type nettype
, const std::string & port
, const std::string & description
)
@@ -62,7 +61,7 @@ public:
{
MGINFO("Initializing " << m_description << " RPC server...");
- if (!m_server.init(vm, restricted, nettype, port))
+ if (!m_server.init(vm, restricted, port))
{
throw std::runtime_error("Failed to initialize " + m_description + " RPC server.");
}