 27043570d9
			
		
	
	
	
	
	27043570d9* Improve compile times * Fix tests * Use loopback address in config * Fix config tests * Hopefully fixes rpc.version test * Fix -DNANO_TIMED_LOCKS build * Formatting * Formatting
		
			
				
	
	
		
			43 lines
		
	
	
	
		
			847 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
	
		
			847 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <nano/lib/rpcconfig.hpp>
 | |
| 
 | |
| #include <string>
 | |
| 
 | |
| namespace boost
 | |
| {
 | |
| namespace filesystem
 | |
| {
 | |
| 	class path;
 | |
| }
 | |
| }
 | |
| 
 | |
| namespace nano
 | |
| {
 | |
| class tomlconfig;
 | |
| class rpc_child_process_config final
 | |
| {
 | |
| public:
 | |
| 	bool enable{ false };
 | |
| 	std::string rpc_path{ get_default_rpc_filepath () };
 | |
| };
 | |
| 
 | |
| class node_rpc_config final
 | |
| {
 | |
| public:
 | |
| 	nano::error serialize_json (nano::jsonconfig &) const;
 | |
| 	nano::error deserialize_json (bool & upgraded_a, nano::jsonconfig &, boost::filesystem::path const & data_path);
 | |
| 	nano::error serialize_toml (nano::tomlconfig & toml) const;
 | |
| 	nano::error deserialize_toml (nano::tomlconfig & toml);
 | |
| 
 | |
| 	bool enable_sign_hash{ false };
 | |
| 	nano::rpc_child_process_config child_process;
 | |
| 	static unsigned json_version ()
 | |
| 	{
 | |
| 		return 1;
 | |
| 	}
 | |
| 
 | |
| private:
 | |
| 	void migrate (nano::jsonconfig & json, boost::filesystem::path const & data_path);
 | |
| };
 | |
| }
 |