Wire Sysio Wire Sysion 1.0.0
|
Producer-voted blockchain configuration parameters. More...
#include <chain_config.hpp>
Public Member Functions | |
void | validate () const |
const chain_config_v0 & | v0 () const |
Public Attributes | |
uint64_t | max_block_net_usage |
the maxiumum net usage in instructions for a block | |
uint32_t | target_block_net_usage_pct |
the target percent (1% == 100, 100%= 10,000) of maximum net usage; exceeding this triggers congestion handling | |
uint32_t | max_transaction_net_usage |
the maximum objectively measured net usage that the chain will allow regardless of account limits | |
uint32_t | base_per_transaction_net_usage |
the base amount of net usage billed for a transaction to cover incidentals | |
uint32_t | net_usage_leeway |
uint32_t | context_free_discount_net_usage_num |
the numerator for the discount on net usage of context-free data | |
uint32_t | context_free_discount_net_usage_den |
the denominator for the discount on net usage of context-free data | |
uint32_t | max_block_cpu_usage |
the maxiumum billable cpu usage (in microseconds) for a block | |
uint32_t | target_block_cpu_usage_pct |
the target percent (1% == 100, 100%= 10,000) of maximum cpu usage; exceeding this triggers congestion handling | |
uint32_t | max_transaction_cpu_usage |
the maximum billable cpu usage (in microseconds) that the chain will allow regardless of account limits | |
uint32_t | min_transaction_cpu_usage |
the minimum billable cpu usage (in microseconds) that the chain requires | |
uint32_t | max_transaction_lifetime |
the maximum number of seconds that an input transaction's expiration can be ahead of the time of the block in which it is first included | |
uint32_t | deferred_trx_expiration_window |
the number of seconds after the time a deferred transaction can first execute until it expires | |
uint32_t | max_transaction_delay |
the maximum number of seconds that can be imposed as a delay requirement by authorization checks | |
uint32_t | max_inline_action_size |
maximum allowed size (in bytes) of an inline action | |
uint16_t | max_inline_action_depth |
recursion depth limit on sending inline actions | |
uint16_t | max_authority_depth |
recursion depth limit for checking if an authority is satisfied | |
Protected Member Functions | |
template<typename Stream > | |
Stream & | log (Stream &out) const |
Friends | |
template<typename Stream > | |
Stream & | operator<< (Stream &out, const chain_config_v0 &c) |
bool | operator== (const chain_config_v0 &lhs, const chain_config_v0 &rhs) |
bool | operator!= (const chain_config_v0 &lhs, const chain_config_v0 &rhs) |
This object stores the blockchain configuration, which is set by the block producers. Block producers each vote for their preference for each of the parameters in this object, and the blockchain runs according to the median of the values specified by the producers.
Definition at line 16 of file chain_config.hpp.
anonymous enum |
Definition at line 19 of file chain_config.hpp.
|
inlineprotected |
Definition at line 115 of file chain_config.hpp.
|
inline |
Definition at line 62 of file chain_config.hpp.
void sysio::chain::chain_config_v0::validate | ( | ) | const |
Definition at line 7 of file chain_config.cpp.
|
friend |
Definition at line 111 of file chain_config.hpp.
|
friend |
Definition at line 67 of file chain_config.hpp.
|
friend |
Definition at line 71 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::base_per_transaction_net_usage |
Definition at line 43 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::context_free_discount_net_usage_den |
Definition at line 46 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::context_free_discount_net_usage_num |
Definition at line 45 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::deferred_trx_expiration_window |
Definition at line 54 of file chain_config.hpp.
uint16_t sysio::chain::chain_config_v0::max_authority_depth |
Definition at line 58 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::max_block_cpu_usage |
Definition at line 48 of file chain_config.hpp.
uint64_t sysio::chain::chain_config_v0::max_block_net_usage |
Definition at line 40 of file chain_config.hpp.
uint16_t sysio::chain::chain_config_v0::max_inline_action_depth |
Definition at line 57 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::max_inline_action_size |
Definition at line 56 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::max_transaction_cpu_usage |
Definition at line 50 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::max_transaction_delay |
Definition at line 55 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::max_transaction_lifetime |
Definition at line 53 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::max_transaction_net_usage |
Definition at line 42 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::min_transaction_cpu_usage |
Definition at line 51 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::net_usage_leeway |
Definition at line 44 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::target_block_cpu_usage_pct |
Definition at line 49 of file chain_config.hpp.
uint32_t sysio::chain::chain_config_v0::target_block_net_usage_pct |
Definition at line 41 of file chain_config.hpp.