Electroneum
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
BlocksdatFile Class Reference

#include <blocksdat_file.h>

Collaboration diagram for BlocksdatFile:
Collaboration graph
[legend]

Public Member Functions

bool store_blockchain_raw (cryptonote::Blockchain *cs, cryptonote::tx_memory_pool *txp, boost::filesystem::path &output_file, uint64_t use_block_height=0)
 

Protected Member Functions

bool open_writer (const boost::filesystem::path &file_path, uint64_t block_stop)
 
bool initialize_file (uint64_t block_stop)
 
bool close ()
 
void write_block (const crypto::hash &block_hash)
 

Protected Attributes

Blockchainm_blockchain_storage
 
std::ofstream * m_raw_data_file
 

Private Attributes

uint64_t m_cur_height
 

Member Function Documentation

◆ close()

bool BlocksdatFile::close ( )
protected

◆ initialize_file()

bool BlocksdatFile::initialize_file ( uint64_t  block_stop)
protected

◆ open_writer()

bool BlocksdatFile::open_writer ( const boost::filesystem::path &  file_path,
uint64_t  block_stop 
)
protected

◆ store_blockchain_raw()

bool BlocksdatFile::store_blockchain_raw ( cryptonote::Blockchain cs,
cryptonote::tx_memory_pool txp,
boost::filesystem::path &  output_file,
uint64_t  use_block_height = 0 
)

◆ write_block()

void BlocksdatFile::write_block ( const crypto::hash block_hash)
protected

Member Data Documentation

◆ m_blockchain_storage

Blockchain* BlocksdatFile::m_blockchain_storage
protected

◆ m_cur_height

uint64_t BlocksdatFile::m_cur_height
private

◆ m_raw_data_file

std::ofstream* BlocksdatFile::m_raw_data_file
protected

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