dncurrency/nano/node/inactive_cache_status.hpp
Dimitrios Siganos f0bea17f4b
Inactive cache information to string (easy review) (#3730)
* 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
2022-02-10 11:24:28 +00:00

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;
};
}