Wire Sysio Wire Sysion 1.0.0
|
Public Member Functions | |
block_log_impl (std::optional< block_log_prune_config > prune_conf) | |
void | check_open_files () |
void | reopen () |
void | try_exit_vacuum () |
void | close () |
template<typename T > | |
void | reset (const T &t, const signed_block_ptr &genesis_block, uint32_t first_block_num) |
void | write (const genesis_state &gs) |
void | write (const chain_id_type &chain_id) |
void | flush () |
void | append (const signed_block_ptr &b) |
void | prune (const fc::log_level &loglevel) |
void | vacuum () |
size_t | convert_existing_header_to_vacuumed () |
uint64_t | get_block_pos (uint32_t block_num) |
Static Public Member Functions | |
template<typename ChainContext , typename Lambda > | |
static std::optional< ChainContext > | extract_chain_context (const fc::path &data_dir, Lambda &&lambda) |
Public Attributes | |
signed_block_ptr | head |
block_id_type | head_id |
fc::cfile | block_file |
fc::cfile | index_file |
bool | open_files = false |
bool | genesis_written_to_block_log = false |
uint32_t | version = 0 |
uint32_t | first_block_num = 0 |
uint32_t | index_first_block_num = 0 |
std::optional< block_log_prune_config > | prune_config |
Definition at line 40 of file block_log.cpp.
|
inline |
Definition at line 53 of file block_log.cpp.
void sysio::chain::detail::block_log_impl::append | ( | const signed_block_ptr & | b | ) |
Definition at line 362 of file block_log.cpp.
|
inline |
Definition at line 63 of file block_log.cpp.
|
inline |
size_t sysio::chain::detail::block_log_impl::convert_existing_header_to_vacuumed | ( | ) |
Definition at line 435 of file block_log.cpp.
|
static |
Definition at line 942 of file block_log.cpp.
void sysio::chain::detail::block_log_impl::flush | ( | ) |
Definition at line 430 of file block_log.cpp.
Definition at line 657 of file block_log.cpp.
void sysio::chain::detail::block_log_impl::prune | ( | const fc::log_level & | loglevel | ) |
Definition at line 401 of file block_log.cpp.
void sysio::chain::detail::detail::block_log_impl::reopen | ( | ) |
Definition at line 130 of file block_log.cpp.
void sysio::chain::detail::block_log_impl::reset | ( | const T & | t, |
const signed_block_ptr & | genesis_block, | ||
uint32_t | first_block_num ) |
Definition at line 548 of file block_log.cpp.
|
inline |
Definition at line 72 of file block_log.cpp.
void sysio::chain::detail::block_log_impl::vacuum | ( | ) |
Definition at line 477 of file block_log.cpp.
void sysio::chain::detail::block_log_impl::write | ( | const chain_id_type & | chain_id | ) |
Definition at line 608 of file block_log.cpp.
void sysio::chain::detail::block_log_impl::write | ( | const genesis_state & | gs | ) |
fc::cfile sysio::chain::detail::block_log_impl::block_file |
Definition at line 44 of file block_log.cpp.
uint32_t sysio::chain::detail::block_log_impl::first_block_num = 0 |
Definition at line 49 of file block_log.cpp.
bool sysio::chain::detail::block_log_impl::genesis_written_to_block_log = false |
Definition at line 47 of file block_log.cpp.
signed_block_ptr sysio::chain::detail::block_log_impl::head |
Definition at line 42 of file block_log.cpp.
block_id_type sysio::chain::detail::block_log_impl::head_id |
Definition at line 43 of file block_log.cpp.
fc::cfile sysio::chain::detail::block_log_impl::index_file |
Definition at line 45 of file block_log.cpp.
uint32_t sysio::chain::detail::block_log_impl::index_first_block_num = 0 |
Definition at line 50 of file block_log.cpp.
bool sysio::chain::detail::block_log_impl::open_files = false |
Definition at line 46 of file block_log.cpp.
std::optional<block_log_prune_config> sysio::chain::detail::block_log_impl::prune_config |
Definition at line 51 of file block_log.cpp.
uint32_t sysio::chain::detail::block_log_impl::version = 0 |
Definition at line 48 of file block_log.cpp.