Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fork_database.cpp File Reference
#include <sysio/chain/fork_database.hpp>
#include <sysio/chain/exceptions.hpp>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/member.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/mem_fun.hpp>
#include <boost/multi_index/global_fun.hpp>
#include <boost/multi_index/composite_key.hpp>
#include <fc/io/fstream.hpp>
#include <fstream>
#include <shared_mutex>
Include dependency graph for fork_database.cpp:

Go to the source code of this file.

Classes

struct  sysio::chain::fork_database_impl
 

Namespaces

namespace  sysio
 
namespace  sysio::chain
 

Typedefs

typedef multi_index_container< block_state_ptr, indexed_by< hashed_unique< tag< by_block_id >, member< block_header_state, block_id_type, &block_header_state::id >, std::hash< block_id_type > >, ordered_non_unique< tag< by_prev >, const_mem_fun< block_header_state, const block_id_type &, &block_header_state::prev > >, ordered_unique< tag< by_lib_block_num >, composite_key< block_state, global_fun< const block_state &, bool, &block_state_is_valid >, member< detail::block_header_state_common, uint32_t, &detail::block_header_state_common::dpos_irreversible_blocknum >, member< detail::block_header_state_common, uint32_t, &detail::block_header_state_common::block_num >, member< block_header_state, block_id_type, &block_header_state::id > >, composite_key_compare< std::greater< bool >, std::greater< uint32_t >, std::greater< uint32_t >, sha256_less > > > > sysio::chain::fork_multi_index_type
 

Functions

bool sysio::chain::block_state_is_valid (const block_state &bs)
 
bool sysio::chain::first_preferred (const block_header_state &lhs, const block_header_state &rhs)