BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | List of all members
graphene::chain::block_database Class Reference

#include <block_database.hpp>

Public Member Functions

void open (const fc::path &dbdir)
 
bool is_open () const
 
void flush ()
 
void close ()
 
void store (const block_id_type &id, const signed_block &b)
 
void remove (const block_id_type &id)
 
bool contains (const block_id_type &id) const
 
block_id_type fetch_block_id (uint32_t block_num) const
 
optional< signed_blockfetch_optional (const block_id_type &id) const
 
optional< signed_blockfetch_by_number (uint32_t block_num) const
 
optional< signed_blocklast () const
 
optional< block_id_typelast_id () const
 
size_t blocks_current_position () const
 
size_t total_block_size () const
 

Detailed Description

Definition at line 34 of file block_database.hpp.

Member Function Documentation

size_t graphene::chain::block_database::blocks_current_position ( ) const

Definition at line 278 of file block_database.cpp.

void graphene::chain::block_database::close ( )

Definition at line 70 of file block_database.cpp.

bool graphene::chain::block_database::contains ( const block_id_type id) const

Definition at line 120 of file block_database.cpp.

block_id_type graphene::chain::block_database::fetch_block_id ( uint32_t  block_num) const

Definition at line 136 of file block_database.cpp.

optional< signed_block > graphene::chain::block_database::fetch_by_number ( uint32_t  block_num) const

Definition at line 184 of file block_database.cpp.

optional< signed_block > graphene::chain::block_database::fetch_optional ( const block_id_type id) const

Definition at line 152 of file block_database.cpp.

void graphene::chain::block_database::flush ( )

Definition at line 76 of file block_database.cpp.

bool graphene::chain::block_database::is_open ( ) const

Definition at line 65 of file block_database.cpp.

optional< signed_block > graphene::chain::block_database::last ( ) const

Definition at line 264 of file block_database.cpp.

optional< block_id_type > graphene::chain::block_database::last_id ( ) const

Definition at line 271 of file block_database.cpp.

void graphene::chain::block_database::open ( const fc::path dbdir)

Definition at line 46 of file block_database.cpp.

void graphene::chain::block_database::remove ( const block_id_type id)

Definition at line 101 of file block_database.cpp.

void graphene::chain::block_database::store ( const block_id_type id,
const signed_block b 
)

Definition at line 82 of file block_database.cpp.

size_t graphene::chain::block_database::total_block_size ( ) const

Definition at line 283 of file block_database.cpp.


The documentation for this class was generated from the following files: