Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::global_property_object Class Reference

Maintains global state information about block producer schedules and chain configuration parameters. More...

#include <global_property_object.hpp>

Inheritance diagram for sysio::chain::global_property_object:
Collaboration diagram for sysio::chain::global_property_object:

Public Member Functions

void initalize_from (const legacy::snapshot_global_property_object_v2 &legacy, const chain_id_type &chain_id_val, const kv_database_config &kv_config_val, const wasm_config &wasm_config_val)
 
void initalize_from (const legacy::snapshot_global_property_object_v3 &legacy, const kv_database_config &kv_config_val, const wasm_config &wasm_config_val)
 
void initalize_from (const legacy::snapshot_global_property_object_v4 &legacy)
 

Public Attributes

id_type id
 
std::optional< block_num_typeproposed_schedule_block_num
 
shared_producer_authority_schedule proposed_schedule
 
chain_config configuration
 
chain_id_type chain_id
 
kv_database_config kv_configuration
 
wasm_config wasm_configuration
 

Additional Inherited Members

- Public Types inherited from chainbase::object< global_property_object_type, global_property_object >
typedef oid< global_property_object > id_type
 
- Static Public Attributes inherited from chainbase::object< global_property_object_type, global_property_object >
static const uint16_t type_id
 

Detailed Description

Definition at line 63 of file global_property_object.hpp.

Member Function Documentation

◆ initalize_from() [1/3]

void sysio::chain::global_property_object::initalize_from ( const legacy::snapshot_global_property_object_v2 & legacy,
const chain_id_type & chain_id_val,
const kv_database_config & kv_config_val,
const wasm_config & wasm_config_val )
inline

Definition at line 76 of file global_property_object.hpp.

76 {
77 proposed_schedule_block_num = legacy.proposed_schedule_block_num;
78 proposed_schedule = producer_authority_schedule(legacy.proposed_schedule).to_shared(proposed_schedule.producers.get_allocator());
79 configuration = legacy.configuration;
80 chain_id = chain_id_val;
81 kv_configuration = kv_config_val;
82 wasm_configuration = wasm_config_val;
83 }
shared_producer_authority_schedule proposed_schedule
std::optional< block_num_type > proposed_schedule_block_num
shared_vector< shared_producer_authority > producers
Here is the call graph for this function:

◆ initalize_from() [2/3]

void sysio::chain::global_property_object::initalize_from ( const legacy::snapshot_global_property_object_v3 & legacy,
const kv_database_config & kv_config_val,
const wasm_config & wasm_config_val )
inline

Definition at line 85 of file global_property_object.hpp.

85 {
86 proposed_schedule_block_num = legacy.proposed_schedule_block_num;
87 proposed_schedule = legacy.proposed_schedule.to_shared(proposed_schedule.producers.get_allocator());
88 configuration = legacy.configuration;
89 chain_id = legacy.chain_id;
90 kv_configuration = kv_config_val;
91 wasm_configuration = wasm_config_val;
92 }
Here is the call graph for this function:

◆ initalize_from() [3/3]

void sysio::chain::global_property_object::initalize_from ( const legacy::snapshot_global_property_object_v4 & legacy)
inline

Definition at line 94 of file global_property_object.hpp.

94 {
95 proposed_schedule_block_num = legacy.proposed_schedule_block_num;
96 proposed_schedule = legacy.proposed_schedule.to_shared(proposed_schedule.producers.get_allocator());
97 configuration = legacy.configuration;
98 chain_id = legacy.chain_id;
99 kv_configuration = legacy.kv_configuration;
100 wasm_configuration = legacy.wasm_configuration;
101 }
Here is the call graph for this function:

Member Data Documentation

◆ chain_id

chain_id_type sysio::chain::global_property_object::chain_id

Definition at line 72 of file global_property_object.hpp.

◆ configuration

chain_config sysio::chain::global_property_object::configuration

Definition at line 71 of file global_property_object.hpp.

◆ id

id_type sysio::chain::global_property_object::id

Definition at line 68 of file global_property_object.hpp.

◆ kv_configuration

kv_database_config sysio::chain::global_property_object::kv_configuration

Definition at line 73 of file global_property_object.hpp.

◆ proposed_schedule

shared_producer_authority_schedule sysio::chain::global_property_object::proposed_schedule

Definition at line 70 of file global_property_object.hpp.

◆ proposed_schedule_block_num

std::optional<block_num_type> sysio::chain::global_property_object::proposed_schedule_block_num

Definition at line 69 of file global_property_object.hpp.

◆ wasm_configuration

wasm_config sysio::chain::global_property_object::wasm_configuration

Definition at line 74 of file global_property_object.hpp.


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