Warn when external rpc process is enabled (#4878)

This commit is contained in:
Piotr Wójcik 2025-04-15 10:24:22 +02:00 committed by GitHub
commit e404a81e6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<boost::process::child> (config.rpc.child_process.rpc_path, "--daemon", "--data_path", data_path.string (), "--network", network);
}