32#include <boost/iostreams/stream_buffer.hpp>
33#include <boost/iostreams/stream.hpp>
34#include <boost/iostreams/device/back_inserter.hpp>
35#include <boost/iostreams/filtering_streambuf.hpp>
36#include <boost/filesystem/path.hpp>
37#include <boost/filesystem/operations.hpp>
66 boost::filesystem::path& output_file,
uint64_t use_block_height=0);
76 boost::iostreams::stream<boost::iostreams::back_insert_device<buffer_type>>*
m_output_stream;
79 bool open_writer(
const boost::filesystem::path& file_path);
std::ofstream * m_raw_data_file
std::vector< char > buffer_type
void write_block(block &block)
uint64_t count_bytes(std::ifstream &import_file, uint64_t blocks, uint64_t &h, bool &quit)
tx_memory_pool * m_tx_pool
bool store_blockchain_raw(cryptonote::Blockchain *cs, cryptonote::tx_memory_pool *txp, boost::filesystem::path &output_file, uint64_t use_block_height=0)
Blockchain * m_blockchain_storage
bool open_writer(const boost::filesystem::path &file_path)
uint64_t seek_to_first_chunk(std::ifstream &import_file, uint8_t &major_version, uint8_t &minor_version)
boost::iostreams::stream< boost::iostreams::back_insert_device< buffer_type > > * m_output_stream
uint64_t count_blocks(const std::string &dir_path, std::streampos &start_pos, uint64_t &seek_height)
Transaction pool, handles transactions which are not part of a block.
Holds cryptonote related classes and helpers.
unsigned __int64 uint64_t