54 boost::program_options::variables_map
const & vm
57 ,
const bool restricted
58 ,
const std::string & port
59 ,
const std::string & description
61 : m_server{core.
get(), p2p.
get()}, m_description{description}
63 MGINFO(
"Initializing " << m_description <<
" RPC server...");
65 if (!m_server.init(vm, restricted, port))
67 throw std::runtime_error(
"Failed to initialize " + m_description +
" RPC server.");
69 MGINFO(m_description <<
" RPC server initialized OK on port: " << m_server.get_binded_port());