Monero
Loading...
Searching...
No Matches
BlocksdatFile Class Reference

#include <blocksdat_file.h>

Collaboration diagram for BlocksdatFile:

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, uint64_t weight)

Protected Attributes

Blockchainm_blockchain_storage
std::ofstream * m_raw_data_file

Private Attributes

uint64_t m_cur_height
std::vector< crypto::hashm_hashes
std::vector< uint64_tm_weights

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,
uint64_t weight )
protected

Member Data Documentation

◆ m_blockchain_storage

Blockchain* BlocksdatFile::m_blockchain_storage
protected

◆ m_cur_height

uint64_t BlocksdatFile::m_cur_height
private

◆ m_hashes

std::vector<crypto::hash> BlocksdatFile::m_hashes
private

◆ m_raw_data_file

std::ofstream* BlocksdatFile::m_raw_data_file
protected

◆ m_weights

std::vector<uint64_t> BlocksdatFile::m_weights
private

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