diff options
author | doy-lee <doylet@protonmail.com> | 2018-11-16 15:32:05 +1100 |
---|---|---|
committer | doy-lee <doylet@protonmail.com> | 2018-11-16 15:32:05 +1100 |
commit | 6f2497bc7ac1865329527947afd6dacb0b1b6a06 (patch) | |
tree | 605f1a27ccba2d2ef738df809bbe4284f0246c27 /src/daemon/rpc.h | |
parent | Merge pull request #4842 (diff) | |
download | monero-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 '')
-rw-r--r-- | src/daemon/rpc.h | 3 |
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."); } |