BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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

◆ blocks_current_position()

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

Definition at line 278 of file block_database.cpp.

◆ close()

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

Definition at line 70 of file block_database.cpp.

◆ contains()

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

Definition at line 120 of file block_database.cpp.

◆ fetch_block_id()

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

Definition at line 136 of file block_database.cpp.

◆ fetch_by_number()

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

Definition at line 184 of file block_database.cpp.

◆ fetch_optional()

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

Definition at line 152 of file block_database.cpp.

◆ flush()

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

Definition at line 76 of file block_database.cpp.

◆ is_open()

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

Definition at line 65 of file block_database.cpp.

◆ last()

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

Definition at line 264 of file block_database.cpp.

◆ last_id()

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

Definition at line 271 of file block_database.cpp.

◆ open()

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

Definition at line 46 of file block_database.cpp.

◆ remove()

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

Definition at line 101 of file block_database.cpp.

◆ store()

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

Definition at line 82 of file block_database.cpp.

◆ total_block_size()

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: