dncurrency/nano/node/daemonconfig.hpp
Dimitrios Siganos 48edec9b7b
Remove nano pow server (#4043)
* Remove nano-pow-server from git and cmake files

Remove nano-pw-server from git repo and from cmake files.

* Remove commented out code that used to spawn nano-pow-server

We are rmeoving nano-pow-server so it is not relevant anymore.

* Remove any references to nano-pow-server

The nano node and the nano wallet used to have options to spawn
nano-pow-server.

And there were config settings for nano-pow-server for enabling and
settings paths.

* Remove references to nano-pow-server from build scripts
2023-01-13 12:37:57 +00:00

29 lines
838 B
C++

#pragma once
#include <nano/lib/errors.hpp>
#include <nano/node/node_rpc_config.hpp>
#include <nano/node/nodeconfig.hpp>
#include <nano/node/openclconfig.hpp>
#include <vector>
namespace nano
{
class tomlconfig;
class daemon_config
{
public:
daemon_config () = default;
daemon_config (boost::filesystem::path const & data_path, nano::network_params & network_params);
nano::error deserialize_toml (nano::tomlconfig &);
nano::error serialize_toml (nano::tomlconfig &);
bool rpc_enable{ false };
nano::node_rpc_config rpc;
nano::node_config node;
bool opencl_enable{ false };
nano::opencl_config opencl;
boost::filesystem::path data_path;
};
nano::error read_node_config_toml (boost::filesystem::path const &, nano::daemon_config & config_a, std::vector<std::string> const & config_overrides = std::vector<std::string> ());
}