diff options
| author | jeffro256 <jeffro256@tutanota.com> | 2026-04-22 00:27:53 -0500 |
|---|---|---|
| committer | jeffro256 <jeffro256@tutanota.com> | 2026-04-22 00:34:02 -0500 |
| commit | 8a20fd2bc84d74917381fb50362b4d1a385256bd (patch) | |
| tree | 652e459985638070bb078441f08c8099d3e68052 /src/blockchain_utilities/blockchain_export.cpp | |
| parent | 8b6be66bef8cce6e074074b7329be9509b93dbb8 (diff) | |
| download | monzero-core-8a20fd2bc84d74917381fb50362b4d1a385256bd.tar.gz monzero-core-8a20fd2bc84d74917381fb50362b4d1a385256bd.tar.xz monzero-core-8a20fd2bc84d74917381fb50362b4d1a385256bd.zip | |
blockchain_utilities: fix --data-dir option
Diffstat (limited to 'src/blockchain_utilities/blockchain_export.cpp')
| -rw-r--r-- | src/blockchain_utilities/blockchain_export.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/blockchain_utilities/blockchain_export.cpp b/src/blockchain_utilities/blockchain_export.cpp index 82fe524de..2b58124a3 100644 --- a/src/blockchain_utilities/blockchain_export.cpp +++ b/src/blockchain_utilities/blockchain_export.cpp @@ -68,6 +68,7 @@ int main(int argc, char* argv[]) command_line::add_arg(desc_cmd_sett, arg_output_file); command_line::add_arg(desc_cmd_sett, cryptonote::arg_testnet_on); command_line::add_arg(desc_cmd_sett, cryptonote::arg_stagenet_on); + command_line::add_arg(desc_cmd_sett, cryptonote::arg_regtest_on); command_line::add_arg(desc_cmd_sett, arg_log_level); command_line::add_arg(desc_cmd_sett, arg_block_start); command_line::add_arg(desc_cmd_sett, arg_block_stop); @@ -105,13 +106,6 @@ int main(int argc, char* argv[]) LOG_PRINT_L0("Starting..."); - bool opt_testnet = command_line::get_arg(vm, cryptonote::arg_testnet_on); - bool opt_stagenet = command_line::get_arg(vm, cryptonote::arg_stagenet_on); - if (opt_testnet && opt_stagenet) - { - std::cerr << "Can't specify more than one of --testnet and --stagenet" << std::endl; - return 1; - } bool opt_blocks_dat = command_line::get_arg(vm, arg_blocks_dat); std::string m_config_folder; @@ -162,7 +156,8 @@ int main(int argc, char* argv[]) LOG_PRINT_L0("Error opening database: " << e.what()); return 1; } - r = core_storage->init(db, opt_testnet ? cryptonote::TESTNET : opt_stagenet ? cryptonote::STAGENET : cryptonote::MAINNET); + const network_type net_type = core::get_network_type_from_args(vm); + r = core_storage->init(db, net_type); if (core_storage->get_blockchain_pruning_seed() && !opt_blocks_dat) { |
