Open reagentoo opened 4 years ago
Also grin-wallet does not process configuration files correctly. It is not possible to move grin-wallet.toml from working directory. .api_secret and .owner_api_secret are always recreated in the same directory of grin-wallet.toml.
Latest master build errors on this older config file:
$ ./target/debug/grin-wallet
thread 'main' panicked at 'called Option::unwrap()
on a None
value', config/src/comments.rs:393:44
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
#########################################
######################################### [wallet]
chain_type = "Mainnet"
api_listen_interface = "127.0.0.1"
api_listen_port = 3415
api_secret_path = "[REDACTED]"
node_api_secret_path = "[REDACTED]"
check_node_api_http_addr = "http://127.0.0.1:3413"
owner_api_include_foreign = false
data_file_dir = "[REDACTED]"
no_commit_cache = false
dark_background_color_scheme = true
keybase_notify_ttl = 1440
#########################################
######################################### [logging]
log_to_stdout = true
stdout_log_level = "Warning"
log_to_file = true
file_log_level = "Debug"
log_file_path = "[REDACTED]"
log_file_append = true
log_max_size = 16777216
It would be nice if the grin-wallet can generate grin-wallet.toml to the current directory (without any other data). It's similar how grin-server can do it:
This is useful for creating packages for different linux distributions and for being able to run with different init systems. (Systemd / OpenRC).
Let me describe more details. To start the application by the initialization system, you must bring the file storage paths to the following:
/etc/grin/*.toml should be installed by the package manager. But the grin-wallet doesn't provide generation of the config file.