oxen-core/src
Jason Rhinelander db58370e87 Config file migration fixes
The loki.conf -> oxen.conf migration wasn't working right when there is
also a ~/.loki -> ~/.oxen migration happening, so this rewrites it to
work properly:

- Make loki.conf -> oxen.conf migration leave behind a symlink
- Fix config file migration to also look for ~/.loki/loki.conf, and also
  consider ~/.loki/oxen.conf as a valid load source.  (The ~/.loki
  consideration only happens when data-dir is default *and* neither
  oxen.conf nor loki.conf are found in ~/.oxen).
- *Don't* look for ~/.loki/{loki,oxen}.conf if the default data dir
  (~/.oxen) exists.

Other changes:

- remove the default handling for the config file/log file and put it in
  main instead.  This is non-trivial, and the existing default is broken
  in that if you specify `--data-dir=blah` it still tries to load
  `~/.oxen/oxen.conf` rather than `blah/oxen.conf`.  With this commit it
  now does the expected thing when a data-dir is specified.
- Append /regtest to data-dir when running in --regtest mode.  The
  existing behaviour of clobbering the mainnet data dir is nasty.
2021-01-07 18:40:22 -04:00
..
blockchain_db executable names changed 2021-01-07 18:40:18 -04:00
blockchain_utilities Eliminate tools::create_directories_if_necessary 2021-01-07 18:40:22 -04:00
blocks blocks: Regenerate block hashes 2020-09-30 12:17:26 +10:00
checkpoints executable names changed 2021-01-07 18:40:18 -04:00
common Eliminate tools::create_directories_if_necessary 2021-01-07 18:40:22 -04:00
crypto executable names changed 2021-01-07 18:40:18 -04:00
cryptonote_basic lokinet revert 2021-01-07 18:40:22 -04:00
cryptonote_core handle .loki directory, leave .loki namespace 2021-01-07 18:40:22 -04:00
cryptonote_protocol executable names changed 2021-01-07 18:40:18 -04:00
daemon Config file migration fixes 2021-01-07 18:40:22 -04:00
daemonizer Move epee includes under "epee/..." 2020-10-24 12:46:27 -03:00
debug_utilities previously used an old monero log version 2021-01-07 18:40:22 -04:00
device executable names changed 2021-01-07 18:40:18 -04:00
device_trezor executable names changed 2021-01-07 18:40:18 -04:00
gen_multisig executable names changed 2021-01-07 18:40:18 -04:00
lmdb Move epee includes under "epee/..." 2020-10-24 12:46:27 -03:00
mnemonics executable names changed 2021-01-07 18:40:18 -04:00
multisig executable names changed 2021-01-07 18:40:18 -04:00
net Move epee includes under "epee/..." 2020-10-24 12:46:27 -03:00
p2p Eliminate tools::create_directories_if_necessary 2021-01-07 18:40:22 -04:00
platform Update monero copyright to 2019 pre-emptively to make merge simpler 2019-04-12 14:36:43 +10:00
ringct executable names changed 2021-01-07 18:40:18 -04:00
rpc make lokid.sock and move the .oxen folder migration to before logs initialise folder 2021-01-07 18:40:22 -04:00
serialization De-inline cryptonote_basic 2020-12-08 22:28:37 -04:00
simplewallet handle .loki directory, leave .loki namespace 2021-01-07 18:40:22 -04:00
wallet Eliminate tools::create_directories_if_necessary 2021-01-07 18:40:22 -04:00
CMakeLists.txt executable names changed 2021-01-07 18:40:18 -04:00
cryptonote_config.h lokinet revert 2021-01-07 18:40:22 -04:00
oxen_economy.h lokinet revert 2021-01-07 18:40:22 -04:00
version.cpp.in executable names changed 2021-01-07 18:40:18 -04:00
version.h executable names changed 2021-01-07 18:40:18 -04:00