Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
genesis_state.hpp
Go to the documentation of this file.
1#pragma once
2
6
8
9#include <string>
10#include <vector>
11
12namespace sysio { namespace chain {
13
16
17 static const string sysio_root_key;
18
20 .max_block_net_usage = config::default_max_block_net_usage,
21 .target_block_net_usage_pct = config::default_target_block_net_usage_pct,
22 .max_transaction_net_usage = config::default_max_transaction_net_usage,
23 .base_per_transaction_net_usage = config::default_base_per_transaction_net_usage,
24 .net_usage_leeway = config::default_net_usage_leeway,
25 .context_free_discount_net_usage_num = config::default_context_free_discount_net_usage_num,
26 .context_free_discount_net_usage_den = config::default_context_free_discount_net_usage_den,
27
28 .max_block_cpu_usage = config::default_max_block_cpu_usage,
29 .target_block_cpu_usage_pct = config::default_target_block_cpu_usage_pct,
30 .max_transaction_cpu_usage = config::default_max_transaction_cpu_usage,
31 .min_transaction_cpu_usage = config::default_min_transaction_cpu_usage,
32
33 .max_transaction_lifetime = config::default_max_trx_lifetime,
34 .deferred_trx_expiration_window = config::default_deferred_trx_expiration_window,
35 .max_transaction_delay = config::default_max_trx_delay,
36 .max_inline_action_size = config::default_max_inline_action_size,
37 .max_inline_action_depth = config::default_max_inline_action_depth,
38 .max_authority_depth = config::default_max_auth_depth,
39 };
40
42 .max_mutable_global_bytes = config::default_max_wasm_mutable_global_bytes,
43 .max_table_elements = config::default_max_wasm_table_elements,
44 .max_section_elements = config::default_max_wasm_section_elements,
45 .max_linear_memory_init = config::default_max_wasm_linear_memory_init,
46 .max_func_local_bytes = config::default_max_wasm_func_local_bytes,
47 .max_nested_structures = config::default_max_wasm_nested_structures,
48 .max_symbol_bytes = config::default_max_wasm_symbol_bytes,
49 .max_module_bytes = config::default_max_wasm_module_bytes,
50 .max_code_bytes = config::default_max_wasm_code_bytes,
51 .max_pages = config::default_max_wasm_pages,
52 .max_call_depth = config::default_max_wasm_call_depth
53 };
54
57
64
65 friend inline bool operator==( const genesis_state& lhs, const genesis_state& rhs ) {
66 return std::tie( lhs.initial_configuration, lhs.initial_timestamp, lhs.initial_key )
67 == std::tie( rhs.initial_configuration, rhs.initial_timestamp, rhs.initial_key );
68 };
69
70 friend inline bool operator!=( const genesis_state& lhs, const genesis_state& rhs ) { return !(lhs == rhs); }
71
72};
73
74} } // namespace sysio::chain
75
76// @swap initial_timestamp initial_key initial_configuration
78 (initial_timestamp)(initial_key)(initial_configuration))
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
Definition reflect.hpp:311
Producer-voted blockchain configuration parameters.
friend bool operator==(const genesis_state &lhs, const genesis_state &rhs)
static constexpr wasm_config default_initial_wasm_configuration
static const string sysio_root_key
friend bool operator!=(const genesis_state &lhs, const genesis_state &rhs)
chain_id_type compute_chain_id() const
chain_config_v0 initial_configuration