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

#include <witness_objects.hpp>

Inheritance diagram for scorum::chain::witness_object:

Public Types

enum  witness_schedule_type { top20 , timeshare , none }
 

Public Attributes

id_type id
 
account_name_type owner
 
time_point_sec created
 
fc::shared_string url
 
uint32_t total_missed = 0
 
uint64_t last_confirmed_block_num = 0
 
public_key_type signing_key
 
chain_properties proposed_chain_props
 
share_type votes
 
witness_schedule_type schedule = none
 
fc::uint128 virtual_last_update
 
fc::uint128 virtual_position
 
fc::uint128 virtual_scheduled_time = fc::uint128::max_value()
 
version running_version
 
hardfork_version hardfork_version_vote
 
time_point_sec hardfork_time_vote
 

Detailed Description

All witnesses with at least 1% net positive approval and at least 2 weeks old are able to participate in block production.

Definition at line 26 of file witness_objects.hpp.

Member Enumeration Documentation

◆ witness_schedule_type

Enumerator
top20 
timeshare 
none 

Definition at line 31 of file witness_objects.hpp.

Member Data Documentation

◆ created

time_point_sec scorum::chain::witness_object::created

Definition at line 42 of file witness_objects.hpp.

◆ hardfork_time_vote

time_point_sec scorum::chain::witness_object::hardfork_time_vote

Definition at line 96 of file witness_objects.hpp.

◆ hardfork_version_vote

hardfork_version scorum::chain::witness_object::hardfork_version_vote

Definition at line 95 of file witness_objects.hpp.

◆ id

id_type scorum::chain::witness_object::id

Definition at line 38 of file witness_objects.hpp.

◆ last_confirmed_block_num

uint64_t scorum::chain::witness_object::last_confirmed_block_num = 0

Definition at line 45 of file witness_objects.hpp.

◆ owner

account_name_type scorum::chain::witness_object::owner

the account that has authority over this witness

Definition at line 41 of file witness_objects.hpp.

◆ proposed_chain_props

chain_properties scorum::chain::witness_object::proposed_chain_props

Definition at line 52 of file witness_objects.hpp.

◆ running_version

version scorum::chain::witness_object::running_version

This field represents the Scorum blockchain version the witness is running.

Definition at line 93 of file witness_objects.hpp.

◆ schedule

witness_schedule_type scorum::chain::witness_object::schedule = none

Definition at line 60 of file witness_objects.hpp.

◆ signing_key

public_key_type scorum::chain::witness_object::signing_key

This is the key used to sign blocks on behalf of this witness

Definition at line 50 of file witness_objects.hpp.

◆ total_missed

uint32_t scorum::chain::witness_object::total_missed = 0

Definition at line 44 of file witness_objects.hpp.

◆ url

fc::shared_string scorum::chain::witness_object::url

Definition at line 43 of file witness_objects.hpp.

◆ votes

share_type scorum::chain::witness_object::votes

The total votes for this witness. This determines how the witness is ranked for scheduling. The top N witnesses by votes are scheduled every round, every one else takes turns being scheduled proportional to their votes.

Definition at line 59 of file witness_objects.hpp.


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