diff options
| author | tobtoht <tob@featherwallet.org> | 2026-04-29 12:29:34 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2026-04-29 12:29:34 +0000 |
| commit | 1cf4fcec36e870c80adc0946c0be375f1a12333d (patch) | |
| tree | be00857a8acb807d15de00507f08f4eac65c856d /src | |
| parent | 77e329bc8fa3a052fb938082b520408196a67d06 (diff) | |
| parent | 05cc8bc477007af8d392b450e20ae6c4c40a5a43 (diff) | |
| download | monzero-core-1cf4fcec36e870c80adc0946c0be375f1a12333d.tar.gz monzero-core-1cf4fcec36e870c80adc0946c0be375f1a12333d.tar.xz monzero-core-1cf4fcec36e870c80adc0946c0be375f1a12333d.zip | |
Merge pull request #10491
05cc8bc cryptonote_core: restore separate fakechain data dir for core_tests (selsta)
Diffstat (limited to 'src')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 8063405de..f50c9ad3f 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -484,6 +484,11 @@ namespace cryptonote bool keep_fakechain = command_line::get_arg(vm, arg_keep_fakechain); boost::filesystem::path folder(m_config_folder); + // --regtest already appends "fake" through arg_data_dir. Some tests set + // FAKECHAIN directly through test_options instead of command line args, so + // preserve the legacy fakechain isolation for those callers. + if (m_nettype == FAKECHAIN && !command_line::get_arg(vm, arg_regtest_on)) + folder /= "fake"; // make sure the data directory exists, and try to lock it CHECK_AND_ASSERT_MES (boost::filesystem::exists(folder) || boost::filesystem::create_directories(folder), false, |
