From e3f0980a1dc2608beee73086d2581d51f367b8b8 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 25 Jan 2018 13:35:17 +0000 Subject: daemon: don't drop RPC with busy error when running offline --- src/daemon/daemon.cpp | 2 +- src/daemon/protocol.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/daemon') diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp index 55d868a3c..31fe8e5a2 100644 --- a/src/daemon/daemon.cpp +++ b/src/daemon/daemon.cpp @@ -68,7 +68,7 @@ public: boost::program_options::variables_map const & vm ) : core{vm} - , protocol{vm, core} + , protocol{vm, core, command_line::get_arg(vm, cryptonote::arg_offline)} , p2p{vm, protocol} { // Handle circular dependencies diff --git a/src/daemon/protocol.h b/src/daemon/protocol.h index 01de535d5..c550271be 100644 --- a/src/daemon/protocol.h +++ b/src/daemon/protocol.h @@ -46,9 +46,9 @@ private: public: t_protocol( boost::program_options::variables_map const & vm - , t_core & core + , t_core & core, bool offline = false ) - : m_protocol{core.get(), nullptr} + : m_protocol{core.get(), nullptr, offline} { MGINFO("Initializing cryptonote protocol..."); if (!m_protocol.init(vm)) -- cgit v1.2.3