mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
db58370e87
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. |
||
---|---|---|
.. | ||
blockchain_db | ||
blockchain_utilities | ||
blocks | ||
checkpoints | ||
common | ||
crypto | ||
cryptonote_basic | ||
cryptonote_core | ||
cryptonote_protocol | ||
daemon | ||
daemonizer | ||
debug_utilities | ||
device | ||
device_trezor | ||
gen_multisig | ||
lmdb | ||
mnemonics | ||
multisig | ||
net | ||
p2p | ||
platform | ||
ringct | ||
rpc | ||
serialization | ||
simplewallet | ||
wallet | ||
CMakeLists.txt | ||
cryptonote_config.h | ||
oxen_economy.h | ||
version.cpp.in | ||
version.h |