From ab18b70a7e7e98141968e4380cc9744cd25555fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Tue, 15 Apr 2025 10:24:22 +0200 Subject: [PATCH] Warn when external rpc process is enabled (#4878) --- nano/nano_node/daemon.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nano/nano_node/daemon.cpp b/nano/nano_node/daemon.cpp index 58b604c6a..3e08aabe8 100644 --- a/nano/nano_node/daemon.cpp +++ b/nano/nano_node/daemon.cpp @@ -170,6 +170,8 @@ void nano::daemon::run (std::filesystem::path const & data_path, nano::node_flag throw std::runtime_error (std::string ("RPC is configured to spawn a new process however the file cannot be found at: ") + config.rpc.child_process.rpc_path); } + logger.warn (nano::log::type::daemon, "RPC is configured to run in a separate process, this is experimental and is not recommended for production use. Please consider using the in-process RPC instead."); + std::string network{ node->network_params.network.get_current_network_as_string () }; rpc_process = std::make_unique (config.rpc.child_process.rpc_path, "--daemon", "--data_path", data_path.string (), "--network", network); }