mirror of
https://github.com/monero-project/monero.git
synced 2025-08-12 12:10:25 -04:00
blockchain_export: Add --output-file argument
This option will export to the specified file path. The default file path remains <data-dir>/export/blockchain.raw
This commit is contained in:
parent
025d9fb278
commit
97c5faa0b6
3 changed files with 21 additions and 16 deletions
|
@ -81,10 +81,10 @@ public:
|
|||
|
||||
#if SOURCE_DB == DB_MEMORY
|
||||
bool store_blockchain_raw(cryptonote::blockchain_storage* cs, cryptonote::tx_memory_pool* txp,
|
||||
boost::filesystem::path& output_dir, uint64_t use_block_height=0);
|
||||
boost::filesystem::path& output_file, uint64_t use_block_height=0);
|
||||
#else
|
||||
bool store_blockchain_raw(cryptonote::Blockchain* cs, cryptonote::tx_memory_pool* txp,
|
||||
boost::filesystem::path& output_dir, uint64_t use_block_height=0);
|
||||
boost::filesystem::path& output_file, uint64_t use_block_height=0);
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
@ -102,7 +102,7 @@ protected:
|
|||
boost::iostreams::stream<boost::iostreams::back_insert_device<buffer_type>>* m_output_stream;
|
||||
|
||||
// open export file for write
|
||||
bool open_writer(const boost::filesystem::path& dir_path);
|
||||
bool open_writer(const boost::filesystem::path& file_path);
|
||||
bool initialize_file();
|
||||
bool close();
|
||||
void write_block(block& block);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue