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_usage.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_usage.cpp')
| -rw-r--r-- | src/blockchain_utilities/blockchain_usage.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/blockchain_utilities/blockchain_usage.cpp b/src/blockchain_utilities/blockchain_usage.cpp index 129a9be21..1cc785283 100644 --- a/src/blockchain_utilities/blockchain_usage.cpp +++ b/src/blockchain_utilities/blockchain_usage.cpp @@ -96,6 +96,7 @@ int main(int argc, char* argv[]) 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_rct_only); command_line::add_arg(desc_cmd_sett, arg_input); @@ -133,9 +134,7 @@ 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); - network_type net_type = opt_testnet ? TESTNET : opt_stagenet ? STAGENET : MAINNET; + const network_type net_type = core::get_network_type_from_args(vm); bool opt_rct_only = command_line::get_arg(vm, arg_rct_only); // If we wanted to use the memory pool, we would set up a fake_core. |
