|
Monero
|
#include <bootstrap_file.h>

Public Member Functions | |
| uint64_t | count_bytes (std::ifstream &import_file, uint64_t blocks, uint64_t &h, bool &quit) |
| uint64_t | count_blocks (const std::string &dir_path, std::streampos &start_pos, uint64_t &seek_height, uint64_t &block_first) |
| uint64_t | count_blocks (const std::string &dir_path) |
| uint64_t | seek_to_first_chunk (std::ifstream &import_file, uint8_t &major_version, uint8_t &minor_version, uint64_t &block_first, uint64_t &block_last) |
| bool | store_blockchain_raw (cryptonote::Blockchain *cs, cryptonote::tx_memory_pool *txp, boost::filesystem::path &output_file, uint64_t start_block=0, uint64_t stop_block=0) |
Protected Types | |
| typedef std::vector< char > | buffer_type |
Protected Member Functions | |
| bool | open_writer (const boost::filesystem::path &file_path, uint64_t start_block, uint64_t stop_block) |
| bool | initialize_file (uint64_t start_block, uint64_t stop_block) |
| bool | close () |
| void | write_block (block &block) |
| void | flush_chunk () |
Protected Attributes | |
| Blockchain * | m_blockchain_storage |
| tx_memory_pool * | m_tx_pool |
| std::ofstream * | m_raw_data_file |
| buffer_type | m_buffer |
| boost::iostreams::stream< boost::iostreams::back_insert_device< buffer_type > > * | m_output_stream |
Private Attributes | |
| uint64_t | m_height |
| uint64_t | m_cur_height |
| uint32_t | m_max_chunk |
|
protected |
|
protected |
| uint64_t BootstrapFile::count_blocks | ( | const std::string & | dir_path | ) |
| uint64_t BootstrapFile::count_blocks | ( | const std::string & | dir_path, |
| std::streampos & | start_pos, | ||
| uint64_t & | seek_height, | ||
| uint64_t & | block_first ) |
| uint64_t BootstrapFile::count_bytes | ( | std::ifstream & | import_file, |
| uint64_t | blocks, | ||
| uint64_t & | h, | ||
| bool & | quit ) |
|
protected |
|
protected |
| uint64_t BootstrapFile::seek_to_first_chunk | ( | std::ifstream & | import_file, |
| uint8_t & | major_version, | ||
| uint8_t & | minor_version, | ||
| uint64_t & | block_first, | ||
| uint64_t & | block_last ) |
| bool BootstrapFile::store_blockchain_raw | ( | cryptonote::Blockchain * | cs, |
| cryptonote::tx_memory_pool * | txp, | ||
| boost::filesystem::path & | output_file, | ||
| uint64_t | start_block = 0, | ||
| uint64_t | stop_block = 0 ) |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
protected |