Scorum
|
#include <chain_api_objects.hpp>
Public Member Functions | |
template<class T > | |
chain_properties_api_obj & | operator= (const T &other) |
![]() | |
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 |
![]() | |
id_type | id |
int32_t | average_block_size = 0 |
int64_t | current_reserve_ratio = 1 |
uint128_t | max_virtual_bandwidth = 0 |
Definition at line 47 of file chain_api_objects.hpp.
|
inline |
Definition at line 49 of file chain_api_objects.hpp.
chain_id_type scorum::app::chain_properties_api_obj::chain_id |
Definition at line 56 of file chain_api_objects.hpp.
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.
account_name_type scorum::app::chain_properties_api_obj::current_witness |
Definition at line 73 of file chain_api_objects.hpp.
block_id_type scorum::app::chain_properties_api_obj::head_block_id |
Definition at line 58 of file chain_api_objects.hpp.
uint32_t scorum::app::chain_properties_api_obj::head_block_number = 0 |
Definition at line 60 of file chain_api_objects.hpp.
hardfork_version scorum::app::chain_properties_api_obj::hf_version |
Definition at line 88 of file chain_api_objects.hpp.
uint32_t scorum::app::chain_properties_api_obj::last_irreversible_block_number = 0 |
Definition at line 62 of file chain_api_objects.hpp.
version scorum::app::chain_properties_api_obj::majority_version |
Definition at line 86 of file chain_api_objects.hpp.
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.
Definition at line 84 of file chain_api_objects.hpp.
time_point_sec scorum::app::chain_properties_api_obj::time |
Definition at line 71 of file chain_api_objects.hpp.