Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysiosystem::block_info::block_info_record Struct Reference

#include <block_info.hpp>

Collaboration diagram for sysiosystem::block_info::block_info_record:

Public Member Functions

uint64_t primary_key () const
 

Public Attributes

uint8_t version = 0
 
uint32_t block_height
 
sysio::time_point block_timestamp
 

Detailed Description

The blockinfo table holds a rolling window of records containing information for recent blocks.

Each record stores the height and timestamp of the correspond block. A record is added for a new block through the onblock action. The onblock action also erases up to two old records at a time in an attempt to keep the table consisting of only records for blocks going back a particular block height difference backward from the most recent block. Currently that block height difference is hardcoded to 10.

Definition at line 23 of file block_info.hpp.

Member Function Documentation

◆ primary_key()

uint64_t sysiosystem::block_info::block_info_record::primary_key ( ) const
inline

Definition at line 29 of file block_info.hpp.

Member Data Documentation

◆ block_height

uint32_t sysiosystem::block_info::block_info_record::block_height

Definition at line 26 of file block_info.hpp.

◆ block_timestamp

sysio::time_point sysiosystem::block_info::block_info_record::block_timestamp

Definition at line 27 of file block_info.hpp.

◆ version

uint8_t sysiosystem::block_info::block_info_record::version = 0

Definition at line 25 of file block_info.hpp.


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