 016f15bd0e
			
		
	
	
	
	
	016f15bd0e* Remove json config code This improves compile/test times a bit. The json->toml upgrade paths are removed as well. In the unlikely case someone needs to upgrade from v19.x and earlier, the solution is to run a v2x node (prior to this change) to perform the upgrade. Closes #3530 * Remove stat_config json deserialization as well * Remove stat_config header's deserialize_json and jsonconfig::read_and_update
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <nano/lib/errors.hpp>
 | |
| 
 | |
| namespace nano
 | |
| {
 | |
| class tomlconfig;
 | |
| class opencl_config
 | |
| {
 | |
| public:
 | |
| 	opencl_config () = default;
 | |
| 	opencl_config (unsigned, unsigned, unsigned);
 | |
| 	nano::error serialize_toml (nano::tomlconfig &) const;
 | |
| 	nano::error deserialize_toml (nano::tomlconfig &);
 | |
| 	unsigned platform{ 0 };
 | |
| 	unsigned device{ 0 };
 | |
| 	unsigned threads{ 1024 * 1024 };
 | |
| };
 | |
| }
 |