Scorum
Public Attributes | List of all members
scorum::chain::dynamic_global_property_object Class Reference

Maintains global state information. More...

#include <dynamic_global_property_object.hpp>

Inheritance diagram for scorum::chain::dynamic_global_property_object:
scorum::app::api_obj< scorum::chain::dynamic_global_property_object > scorum::app::dynamic_global_property_api_obj

Public Attributes

id_type id
 
uint32_t head_block_number = 0
 Current head block number. More...
 
block_id_type head_block_id
 Current head block id. More...
 
time_point_sec time
 Current head block time. More...
 
account_name_type current_witness
 Head block signed by current witness. More...
 
asset total_supply = asset(0, SCORUM_SYMBOL)
 Total SCR and SP (circulating_scr + circulating_sp) More...
 
asset circulating_capital = asset(0, SCORUM_SYMBOL)
 Total SCR and SP on circulating (on account balances). circulating_capital <= total_supply. More...
 
asset total_scorumpower = asset(0, SP_SYMBOL)
 Total SP on accounts scorumpower. More...
 
asset total_witness_reward_scr = asset(0, SCORUM_SYMBOL)
 Total amount of SCR received by witnesses. More...
 
asset total_witness_reward_sp = asset(0, SP_SYMBOL)
 Total amount of SP received by witnesses. More...
 
asset total_pending_scr = asset(0, SCORUM_SYMBOL)
 Total amount of pending SCR. More...
 
asset total_pending_sp = asset(0, SP_SYMBOL)
 Total amount of pending SP. More...
 
chain_properties median_chain_props
 
version majority_version
 Witnesses majority version. More...
 
uint64_t current_aslot = 0
 
fc::uint128_t recent_slots_filled
 used to compute witness participation. More...
 
uint8_t participation_count = 0
 Divide by 128 to compute participation percentage. More...
 
uint32_t last_irreversible_block_num = 0
 last irreversible block num More...
 
adv_total_stats advertising
 this section display information about advertising totals More...
 
betting_total_stats betting_stats
 this section display information about betting totals More...
 

Detailed Description

Maintains global state information.

This is an implementation detail. The values here are calculated during normal chain operations and reflect the current values of global blockchain properties.

Definition at line 53 of file dynamic_global_property_object.hpp.

Member Data Documentation

◆ advertising

adv_total_stats scorum::chain::dynamic_global_property_object::advertising

this section display information about advertising totals

Definition at line 119 of file dynamic_global_property_object.hpp.

◆ betting_stats

betting_total_stats scorum::chain::dynamic_global_property_object::betting_stats

this section display information about betting totals

Definition at line 122 of file dynamic_global_property_object.hpp.

◆ circulating_capital

asset scorum::chain::dynamic_global_property_object::circulating_capital = asset(0, SCORUM_SYMBOL)

Total SCR and SP on circulating (on account balances). circulating_capital <= total_supply.

Definition at line 77 of file dynamic_global_property_object.hpp.

◆ current_aslot

uint64_t scorum::chain::dynamic_global_property_object::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 107 of file dynamic_global_property_object.hpp.

◆ current_witness

account_name_type scorum::chain::dynamic_global_property_object::current_witness

Head block signed by current witness.

Definition at line 71 of file dynamic_global_property_object.hpp.

◆ head_block_id

block_id_type scorum::chain::dynamic_global_property_object::head_block_id

Current head block id.

Definition at line 65 of file dynamic_global_property_object.hpp.

◆ head_block_number

uint32_t scorum::chain::dynamic_global_property_object::head_block_number = 0

Current head block number.

Definition at line 62 of file dynamic_global_property_object.hpp.

◆ id

id_type scorum::chain::dynamic_global_property_object::id

Definition at line 59 of file dynamic_global_property_object.hpp.

◆ last_irreversible_block_num

uint32_t scorum::chain::dynamic_global_property_object::last_irreversible_block_num = 0

last irreversible block num

Definition at line 116 of file dynamic_global_property_object.hpp.

◆ majority_version

version scorum::chain::dynamic_global_property_object::majority_version

Witnesses majority version.

Definition at line 103 of file dynamic_global_property_object.hpp.

◆ median_chain_props

chain_properties scorum::chain::dynamic_global_property_object::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 100 of file dynamic_global_property_object.hpp.

◆ participation_count

uint8_t scorum::chain::dynamic_global_property_object::participation_count = 0

Divide by 128 to compute participation percentage.

Definition at line 113 of file dynamic_global_property_object.hpp.

◆ recent_slots_filled

fc::uint128_t scorum::chain::dynamic_global_property_object::recent_slots_filled

used to compute witness participation.

Definition at line 110 of file dynamic_global_property_object.hpp.

◆ time

time_point_sec scorum::chain::dynamic_global_property_object::time

Current head block time.

Definition at line 68 of file dynamic_global_property_object.hpp.

◆ total_pending_scr

asset scorum::chain::dynamic_global_property_object::total_pending_scr = asset(0, SCORUM_SYMBOL)

Total amount of pending SCR.

Definition at line 89 of file dynamic_global_property_object.hpp.

◆ total_pending_sp

asset scorum::chain::dynamic_global_property_object::total_pending_sp = asset(0, SP_SYMBOL)

Total amount of pending SP.

Definition at line 92 of file dynamic_global_property_object.hpp.

◆ total_scorumpower

asset scorum::chain::dynamic_global_property_object::total_scorumpower = asset(0, SP_SYMBOL)

Total SP on accounts scorumpower.

Definition at line 80 of file dynamic_global_property_object.hpp.

◆ total_supply

asset scorum::chain::dynamic_global_property_object::total_supply = asset(0, SCORUM_SYMBOL)

Total SCR and SP (circulating_scr + circulating_sp)

Definition at line 74 of file dynamic_global_property_object.hpp.

◆ total_witness_reward_scr

asset scorum::chain::dynamic_global_property_object::total_witness_reward_scr = asset(0, SCORUM_SYMBOL)

Total amount of SCR received by witnesses.

Definition at line 83 of file dynamic_global_property_object.hpp.

◆ total_witness_reward_sp

asset scorum::chain::dynamic_global_property_object::total_witness_reward_sp = asset(0, SP_SYMBOL)

Total amount of SP received by witnesses.

Definition at line 86 of file dynamic_global_property_object.hpp.


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