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

v1 Producer-voted blockchain configuration parameters More...

#include <chain_config.hpp>

Inheritance diagram for sysio::chain::chain_config_v1:
Collaboration diagram for sysio::chain::chain_config_v1:

Public Types

enum  { max_action_return_value_size_id = Base::PARAMS_COUNT , PARAMS_COUNT }
 
using Base = chain_config_v0
 
- Public Types inherited from sysio::chain::chain_config_v0
enum  {
  max_block_net_usage_id , target_block_net_usage_pct_id , max_transaction_net_usage_id , base_per_transaction_net_usage_id ,
  net_usage_leeway_id , context_free_discount_net_usage_num_id , context_free_discount_net_usage_den_id , max_block_cpu_usage_id ,
  target_block_cpu_usage_pct_id , max_transaction_cpu_usage_id , min_transaction_cpu_usage_id , max_transaction_lifetime_id ,
  deferred_trx_expiration_window_id , max_transaction_delay_id , max_inline_action_size_id , max_inline_action_depth_id ,
  max_authority_depth_id , PARAMS_COUNT
}
 

Public Member Functions

const Basebase () const
 
void validate () const
 
chain_config_v1operator= (const Base &b)
 
- Public Member Functions inherited from sysio::chain::chain_config_v0
void validate () const
 
const chain_config_v0v0 () const
 

Public Attributes

uint32_t max_action_return_value_size = config::default_max_action_return_value_size
 size limit for action return value
 
- Public Attributes inherited from sysio::chain::chain_config_v0
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 >
Streamlog (Stream &out) const
 
- Protected Member Functions inherited from sysio::chain::chain_config_v0
template<typename Stream >
Streamlog (Stream &out) const
 

Friends

template<typename Stream >
Streamoperator<< (Stream &out, const chain_config_v1 &c)
 
bool operator== (const chain_config_v1 &lhs, const chain_config_v1 &rhs)
 
bool operator!= (const chain_config_v1 &lhs, const chain_config_v1 &rhs)
 

Detailed Description

If Adding new parameters create chain_config_v[n] class instead of adding new parameters to v1 or v0. This is needed for snapshots backward compatibility

Definition at line 143 of file chain_config.hpp.

Member Typedef Documentation

◆ Base

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
max_action_return_value_size_id 
PARAMS_COUNT 

Definition at line 149 of file chain_config.hpp.

Member Function Documentation

◆ base()

const Base & sysio::chain::chain_config_v1::base ( ) const
inline

Definition at line 154 of file chain_config.hpp.

154 {
155 return static_cast<const Base&>(*this);
156 }
Here is the caller graph for this function:

◆ log()

template<typename Stream >
Stream & sysio::chain::chain_config_v1::log ( Stream & out) const
inlineprotected

Definition at line 182 of file chain_config.hpp.

182 {
183 return base().log(out) << ", Max Action Return Value Size: " << max_action_return_value_size;
184 }
Stream & log(Stream &out) const
uint32_t max_action_return_value_size
size limit for action return value
Here is the call graph for this function:

◆ operator=()

chain_config_v1 & sysio::chain::chain_config_v1::operator= ( const Base & b)
inline

Definition at line 175 of file chain_config.hpp.

175 {
176 Base::operator= (b);
177 return *this;
178 }

◆ validate()

void sysio::chain::chain_config_v1::validate ( ) const

Definition at line 42 of file chain_config.cpp.

42 {
45 "max action return value size should be less than MAX_SIZE_OF_BYTE_ARRAYS" );
46}
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
Definition exceptions.hpp:7
key Invalid authority Invalid transaction Invalid block ID Invalid packed transaction Invalid chain ID Invalid symbol Signature type is not a currently activated type Block can not be found Unlinkable block Block does not guarantee concurrent execution without conflicts Block exhausted allowed resources Block is from the future Block is not signed by expected producer Block includes an ill formed protocol feature activation extension Block includes an ill formed additional block signature extension Error decompressing transaction Transaction should have at least one required authority Expired Transaction Invalid Reference Block Duplicate deferred transaction The transaction can not be found Transaction is too big Invalid transaction extension Transaction includes disallowed Transaction exceeded transient resource limit action_validate_exception
#define MAX_SIZE_OF_BYTE_ARRAYS
Definition utility.hpp:19
Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const chain_config_v1 & lhs,
const chain_config_v1 & rhs )
friend

Definition at line 171 of file chain_config.hpp.

171 {
172 return !(lhs == rhs);
173 }

◆ operator<<

template<typename Stream >
Stream & operator<< ( Stream & out,
const chain_config_v1 & c )
friend

Definition at line 161 of file chain_config.hpp.

161 {
162 return c.log(out) << "\n";
163 }

◆ operator==

bool operator== ( const chain_config_v1 & lhs,
const chain_config_v1 & rhs )
friend

Definition at line 165 of file chain_config.hpp.

165 {
166 //add v1 parameters comarison here
167 return std::tie(lhs.max_action_return_value_size) == std::tie(rhs.max_action_return_value_size)
168 && lhs.base() == rhs.base();
169 }

Member Data Documentation

◆ max_action_return_value_size

uint32_t sysio::chain::chain_config_v1::max_action_return_value_size = config::default_max_action_return_value_size

Definition at line 146 of file chain_config.hpp.


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