Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Public Member Functions | Public Attributes | List of all members
golos::chain::fork_item Struct Reference

#include <fork_database.hpp>

Public Member Functions

 fork_item (signed_block d)
 
block_id_type previous_id () const
 

Public Attributes

weak_ptr< fork_itemprev
 
uint32_t num
 
bool invalid = false
 
block_id_type id
 
signed_block data
 

Detailed Description

Definition at line 20 of file fork_database.hpp.

Constructor & Destructor Documentation

◆ fork_item()

golos::chain::fork_item::fork_item ( signed_block  d)
inline

Definition at line 21 of file fork_database.hpp.

Member Function Documentation

◆ previous_id()

block_id_type golos::chain::fork_item::previous_id ( ) const
inline

Definition at line 25 of file fork_database.hpp.

Member Data Documentation

◆ data

signed_block golos::chain::fork_item::data

Definition at line 37 of file fork_database.hpp.

◆ id

block_id_type golos::chain::fork_item::id

Definition at line 36 of file fork_database.hpp.

◆ invalid

bool golos::chain::fork_item::invalid = false

Used to flag a block as invalid and prevent other blocks from building on top of it.

Definition at line 35 of file fork_database.hpp.

◆ num

uint32_t golos::chain::fork_item::num

Definition at line 30 of file fork_database.hpp.

◆ prev

weak_ptr<fork_item> golos::chain::fork_item::prev

Definition at line 29 of file fork_database.hpp.


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