Wire Sysio Wire Sysion 1.0.0
|
defines the minimum state necessary to validate transaction headers More...
#include <block_header_state.hpp>
Definition at line 119 of file block_header_state.hpp.
|
default |
|
inlineexplicit |
Definition at line 132 of file block_header_state.hpp.
|
explicit |
Definition at line 466 of file block_header_state.cpp.
uint32_t sysio::chain::block_header_state::calc_dpos_last_irreversible | ( | account_name | producer_of_next_block | ) | const |
2/3 must be greater, so if I go 1/3 into the list sorted from low to high, then 2/3 are greater
Definition at line 24 of file block_header_state.cpp.
const vector< digest_type > & sysio::chain::block_header_state::get_new_protocol_feature_activations | ( | ) | const |
Reference cannot outlive *this. Assumes header_exts is not mutated after instatiation.
Definition at line 457 of file block_header_state.cpp.
producer_authority sysio::chain::block_header_state::get_scheduled_producer | ( | block_timestamp_type | t | ) | const |
Definition at line 18 of file block_header_state.cpp.
|
inline |
Definition at line 148 of file block_header_state.hpp.
pending_block_header_state sysio::chain::block_header_state::next | ( | block_timestamp_type | when, |
uint16_t | num_prev_blocks_to_confirm ) const |
grow the confirmed count
confirm the head block too
Definition at line 38 of file block_header_state.cpp.
block_header_state sysio::chain::block_header_state::next | ( | const signed_block_header & | h, |
vector< signature_type > && | _additional_signatures, | ||
const protocol_feature_set & | pfs, | ||
const std::function< void(block_timestamp_type, const flat_set< digest_type > &, const vector< digest_type > &)> & | validator, | ||
bool | skip_validate_signee = false ) const |
Transitions the current header state into the next header state given the supplied signed block header.
Given a signed block header, generate the expected template based upon the header time, then validate that the provided header matches the template.
If the header specifies new_producers then apply them accordingly.
Definition at line 391 of file block_header_state.cpp.
|
inline |
Definition at line 152 of file block_header_state.hpp.
digest_type sysio::chain::block_header_state::sig_digest | ( | ) | const |
Definition at line 403 of file block_header_state.cpp.
void sysio::chain::block_header_state::sign | ( | const signer_callback_type & | signer | ) |
Definition at line 408 of file block_header_state.cpp.
void sysio::chain::block_header_state::verify_signee | ( | ) | const |
Definition at line 421 of file block_header_state.cpp.
protocol_feature_activation_set_ptr sysio::chain::block_header_state::activated_protocol_features |
Definition at line 123 of file block_header_state.hpp.
vector<signature_type> sysio::chain::block_header_state::additional_signatures |
Definition at line 124 of file block_header_state.hpp.
signed_block_header sysio::chain::block_header_state::header |
Definition at line 121 of file block_header_state.hpp.
flat_multimap<uint16_t, block_header_extension> sysio::chain::block_header_state::header_exts |
this data is redundant with the data stored in header, but it acts as a cache that avoids duplication of work
Definition at line 128 of file block_header_state.hpp.
block_id_type sysio::chain::block_header_state::id |
Definition at line 120 of file block_header_state.hpp.
detail::schedule_info sysio::chain::block_header_state::pending_schedule |
Definition at line 122 of file block_header_state.hpp.