Wire Sysio Wire Sysion 1.0.0
|
#include <block_info.hpp>
Public Member Functions | |
uint64_t | primary_key () const |
Public Attributes | |
uint8_t | version = 0 |
uint32_t | block_height |
sysio::time_point | block_timestamp |
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.
|
inline |
Definition at line 29 of file block_info.hpp.
uint32_t sysiosystem::block_info::block_info_record::block_height |
Definition at line 26 of file block_info.hpp.
sysio::time_point sysiosystem::block_info::block_info_record::block_timestamp |
Definition at line 27 of file block_info.hpp.
uint8_t sysiosystem::block_info::block_info_record::version = 0 |
Definition at line 25 of file block_info.hpp.