 f0bea17f4b
			
		
	
	
	
	
	f0bea17f4b* to_string functions for inactive_cache_information & inactive_cache_status * Move class inactive_cache_status to its own file * Move class inactive_cache_information to its own file
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			501 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			501 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <nano/lib/numbers.hpp>
 | |
| 
 | |
| namespace nano
 | |
| {
 | |
| class inactive_cache_status final
 | |
| {
 | |
| public:
 | |
| 	bool bootstrap_started{ false };
 | |
| 
 | |
| 	/** Did item reach config threshold to start an impromptu election? */
 | |
| 	bool election_started{ false };
 | |
| 
 | |
| 	/** Did item reach votes quorum? (minimum config value) */
 | |
| 	bool confirmed{ false };
 | |
| 
 | |
| 	/** Last votes tally for block */
 | |
| 	nano::uint128_t tally{ 0 };
 | |
| 
 | |
| 	bool operator!= (inactive_cache_status const other) const;
 | |
| 
 | |
| 	std::string to_string () const;
 | |
| };
 | |
| 
 | |
| }
 |