6namespace sysio {
namespace chain {
29 static constexpr uint32_t current_version = 2;
30 static constexpr uint32_t minimum_version = 2;
35 void validate()
const {
36 SYS_ASSERT(std::clamp(version, minimum_version, current_version) == version, bad_database_version_exception,
37 "state database version is incompatible, please restore from a compatible snapshot or replay!",
38 (
"version", version)(
"minimum_version", minimum_version)(
"maximum_version", current_version));
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
#define CHAINBASE_SET_INDEX_TYPE(OBJECT_TYPE, INDEX_TYPE)
boost::multi_index_container< Object, Args..., chainbase::node_allocator< Object > > shared_multi_index_container
chainbase::shared_multi_index_container< database_header_object, indexed_by< ordered_unique< tag< by_id >, BOOST_MULTI_INDEX_MEMBER(database_header_object, database_header_object::id_type, id)> > > database_header_multi_index
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.