Skip to content

Commit

Permalink
Clarify nano_pow_server configs are not in use (#2724)
Browse files Browse the repository at this point in the history
* Clarify nano_pow_server configs are not in use
* Additionally disable possible nano_pow_server launch in daemon (not used)
  • Loading branch information
SergiySW committed Apr 22, 2020
1 parent 9463d1b commit 95bfae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nano/nano_node/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions nano/node/node_pow_server_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
}

Expand Down

0 comments on commit 95bfae4

Please sign in to comment.