Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::chain_snapshot_header Struct Reference

#include <chain_snapshot.hpp>

Public Member Functions

void validate () const
 

Public Attributes

uint32_t version = current_version
 

Static Public Attributes

static constexpr uint32_t minimum_compatible_version = 2
 
static constexpr uint32_t current_version = 6
 

Detailed Description

Definition at line 7 of file chain_snapshot.hpp.

Member Function Documentation

◆ validate()

void sysio::chain::chain_snapshot_header::validate ( ) const
inline

Definition at line 33 of file chain_snapshot.hpp.

33 {
35 auto max = current_version;
36 SYS_ASSERT(version >= min && version <= max,
37 snapshot_validation_exception,
38 "Unsupported version of chain snapshot: ${version}. Supported version must be between ${min} and ${max} inclusive.",
39 ("version",version)("min",min)("max",max));
40 }
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
Definition exceptions.hpp:7
const T & min(const T &a, const T &b)
Definition utility.hpp:140
static constexpr uint32_t minimum_compatible_version
static constexpr uint32_t current_version
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ current_version

uint32_t sysio::chain::chain_snapshot_header::current_version = 6
staticconstexpr

Definition at line 29 of file chain_snapshot.hpp.

◆ minimum_compatible_version

uint32_t sysio::chain::chain_snapshot_header::minimum_compatible_version = 2
staticconstexpr

Version history 1: initial version 2: Updated chain snapshot for v1.8.0 initial protocol features release:

  • Incompatible with version 1.
  • Adds new indices for: protocol_state_object and account_ram_correction_object 3: Updated for v2.0.0 protocol features:
  • forwards compatible with version 2
  • WebAuthn keys
  • wtmsig block siganatures: the block header state changed to include producer authorities and additional signatures
  • removed genesis_state and added chain ID to global_property_object 4: Updated for v3.0.0 protocol features:
  • forwards compatible with versions 2 and 3
  • kv database
  • Configurable wasm limits 5: Updated for v3.0.0 eos features:
  • chain_config update 6: Updated for v3.1.0 release

Definition at line 28 of file chain_snapshot.hpp.

◆ version

uint32_t sysio::chain::chain_snapshot_header::version = current_version

Definition at line 31 of file chain_snapshot.hpp.


The documentation for this struct was generated from the following file: