Clarify nano_pow_server configs are not in use (#2724)

* Clarify nano_pow_server configs are not in use
* Additionally disable possible nano_pow_server launch in daemon (not used)
This commit is contained in:
Sergey Kroshnin 2020-04-22 21:13:53 +03:00 committed by GitHub
commit 95bfae4fae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -74,7 +74,7 @@ void nano_daemon::daemon::run (boost::filesystem::path const & data_path, nano::
std::unique_ptr<boost::process::child> nano_pow_server_process;
#endif
if (config.pow_server.enable)
/*if (config.pow_server.enable)
{
if (!boost::filesystem::exists (config.pow_server.pow_server_path))
{
@ -88,7 +88,7 @@ void nano_daemon::daemon::run (boost::filesystem::path const & data_path, nano::
std::cerr << "nano_pow_server is configured to start as a child process, but this is not supported on this system. Disable startup and start the server manually." << std::endl;
std::exit (1);
#endif
}
}*/
std::unique_ptr<std::thread> rpc_process_thread;
std::unique_ptr<nano::rpc> rpc;

View file

@ -3,8 +3,8 @@
nano::error nano::node_pow_server_config::serialize_toml (nano::tomlconfig & toml) const
{
toml.put ("enable", enable, "Enable or disable starting Nano PoW Server as a child process.\ntype:bool");
toml.put ("nano_pow_server_path", pow_server_path, "Path to the nano_pow_server executable.\ntype:string,path");
toml.put ("enable", enable, "Value is currently not in use. Enable or disable starting Nano PoW Server as a child process.\ntype:bool");
toml.put ("nano_pow_server_path", pow_server_path, "Value is currently not in use. Path to the nano_pow_server executable.\ntype:string,path");
return toml.get_error ();
}