Scorum
Public Member Functions | Public Attributes | List of all members
scorum::app::chain_properties_api_obj Struct Reference

#include <chain_api_objects.hpp>

Inheritance diagram for scorum::app::chain_properties_api_obj:
scorum::app::api_obj< scorum::witness::reserve_ratio_object > scorum::witness::reserve_ratio_object

Public Member Functions

template<class T >
chain_properties_api_objoperator= (const T &other)
 
- Public Member Functions inherited from scorum::app::api_obj< scorum::witness::reserve_ratio_object >
 api_obj ()
 
 api_obj (const scorum::witness::reserve_ratio_object &other)
 

Public Attributes

chain_id_type chain_id
 
block_id_type head_block_id
 
uint32_t head_block_number = 0
 
uint32_t last_irreversible_block_number = 0
 
uint64_t current_aslot = 0
 
time_point_sec time
 
account_name_type current_witness
 
chain_properties median_chain_props
 
version majority_version
 
hardfork_version hf_version
 
- Public Attributes inherited from scorum::witness::reserve_ratio_object
id_type id
 
int32_t average_block_size = 0
 
int64_t current_reserve_ratio = 1
 
uint128_t max_virtual_bandwidth = 0
 

Detailed Description

Definition at line 47 of file chain_api_objects.hpp.

Member Function Documentation

◆ operator=()

template<class T >
chain_properties_api_obj& scorum::app::chain_properties_api_obj::operator= ( const T &  other)
inline

Definition at line 49 of file chain_api_objects.hpp.

Member Data Documentation

◆ chain_id

chain_id_type scorum::app::chain_properties_api_obj::chain_id

Definition at line 56 of file chain_api_objects.hpp.

◆ current_aslot

uint64_t scorum::app::chain_properties_api_obj::current_aslot = 0

The current absolute slot number. Equal to the total number of slots since genesis. Also equal to the total number of missed slots plus head_block_number.

Definition at line 69 of file chain_api_objects.hpp.

◆ current_witness

account_name_type scorum::app::chain_properties_api_obj::current_witness

Definition at line 73 of file chain_api_objects.hpp.

◆ head_block_id

block_id_type scorum::app::chain_properties_api_obj::head_block_id

Definition at line 58 of file chain_api_objects.hpp.

◆ head_block_number

uint32_t scorum::app::chain_properties_api_obj::head_block_number = 0

Definition at line 60 of file chain_api_objects.hpp.

◆ hf_version

hardfork_version scorum::app::chain_properties_api_obj::hf_version

Definition at line 88 of file chain_api_objects.hpp.

◆ last_irreversible_block_number

uint32_t scorum::app::chain_properties_api_obj::last_irreversible_block_number = 0

Definition at line 62 of file chain_api_objects.hpp.

◆ majority_version

version scorum::app::chain_properties_api_obj::majority_version

Definition at line 86 of file chain_api_objects.hpp.

◆ median_chain_props

chain_properties scorum::app::chain_properties_api_obj::median_chain_props

Chain properties are decided by the set of active witnesses which change every round. Each witness posts what they think the chain properties should be as part of their witness properties, the median size is chosen to be the chain properties for the round.

Note
the minimum value for maximum_block_size is defined by the protocol to prevent the network from getting stuck by witnesses attempting to set this too low.

Definition at line 84 of file chain_api_objects.hpp.

◆ time

time_point_sec scorum::app::chain_properties_api_obj::time

Definition at line 71 of file chain_api_objects.hpp.


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