23 : _db(*ctx.app.chain_database())
33 return _db.with_read_lock([&]() {
39 const auto& r = _db.find(witness::reserve_ratio_id_type());
41 if (BOOST_LIKELY(r != nullptr))
53 ret_val.time = dpo.
time;
66 return _db.with_read_lock([&]() {
77 return _db.with_read_lock([&]() {
80 case reward_fund_type::content_reward_fund_scr:
83 FC_ASSERT(rf_service.is_exists(),
"${f} object does not exist", (
"f", type_of_fund));
86 case reward_fund_type::content_reward_fund_sp:
89 FC_ASSERT(rf_service.is_exists(),
"${f} object does not exist", (
"f", type_of_fund));
92 case reward_fund_type::content_fifa_world_cup_2018_bounty_reward_fund:
95 FC_ASSERT(rf_service.is_exists(),
"${f} object does not exist", (
"f", type_of_fund));
99 FC_ASSERT(
false,
"Unknown fund");
107 return _db.with_read_lock([&]() {
167 if (fifa_world_cup_2018_bounty_fund_service.is_exists())
173 if (migration_service.is_exists())
201 wlog(
"total_supply != circulating_scr + circulating_sp",
chain_properties_api_obj get_chain_properties() const
chain_api(const api_context &a)
chain_id_type get_chain_id() const
virtual bool is_exists() const override
ConcreteService & obtain_service() const
Maintains global state information.
adv_total_stats advertising
this section display information about advertising totals
uint32_t last_irreversible_block_num
last irreversible block num
betting_total_stats betting_stats
this section display information about betting totals
block_id_type head_block_id
Current head block id.
version majority_version
Witnesses majority version.
chain_properties median_chain_props
asset total_scorumpower
Total SP on accounts scorumpower.
asset circulating_capital
Total SCR and SP on circulating (on account balances). circulating_capital <= total_supply.
uint32_t head_block_number
Current head block number.
account_name_type current_witness
Head block signed by current witness.
time_point_sec time
Current head block time.
asset total_supply
Total SCR and SP (circulating_scr + circulating_sp)
asset total_witness_reward_sp
Total amount of SP received by witnesses.
asset total_pending_scr
Total amount of pending SCR.
asset total_witness_reward_scr
Total amount of SCR received by witnesses.
asset total_pending_sp
Total amount of pending SP.
shared_multi_index_container< reserve_ratio_object, indexed_by< ordered_unique< tag< by_id >, member< reserve_ratio_object, reserve_ratio_id_type, &reserve_ratio_object::id > > > > reserve_ratio_index
asset circulating_sp
Total amount of SP.
account_name_type current_witness
asset active_voters_balancer_scr
asset content_balancer_scr
asset total_witness_reward_scr
asset total_supply
Total SCR and SP (circulating_capital + pools supply)
block_id_type head_block_id
time_point_sec head_block_time
asset registration_pool_balance
asset active_voters_balancer_sp
asset dev_pool_scr_balance
asset witness_reward_in_sp_migration_fund
asset content_reward_fund_sp_balance
uint32_t head_block_number
asset circulating_scr
Total amount of SCR.
asset registration_pool_delegated
asset fund_budget_balance
asset dev_pool_sp_balance
asset content_reward_fund_scr_balance
asset total_scorumpower
Total SP on accounts.
asset circulating_capital
Total SCR and SP on circulating (on account balances). circulating_capital <= total_supply.
asset total_scr
Total SCR on accounts.
asset total_witness_reward_sp
asset content_reward_fifa_world_cup_2018_bounty_fund_sp_balance
asset total_pending_scr
Total amount of pending SCR (planned rewards for account)
scorum::chain::betting_total_stats betting_stats
asset total_pending_sp
Total amount of pending SP (planned rewards for account)
scorum::chain::adv_total_stats advertising
fc::time_point_sec live_time
hardfork_version hf_version
asset_symbol_type symbol() const