mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-01 03:13:56 +01:00
Global config instance (#769)
* config: global instance * fix: cli tests * fix: owner api tests * config: save tor config * fix: owner rpc tests * fix: set config file path on init and owner api call * tor: store launched services, get global config at command loop, remove unused listen args, check for empty global config to set default, do not save empty tor config at owner * api: update config in memory after successful file write * arti: restart proxy in loop * fix: comment for tor config save * config: set or init, update without error * config: scoped tor config * build: update lock file * config: ability to store multiple configurations at memory from config path * tor: restart service on config change * fix: owner api test * foreign: pass tor config from args, stop service, error handling * arti: move runtime wrapper to single file * config: read existing config from file at create_config * config: handle error on read * arti: single dir for cache * foreign: register config listener before launch * config: save temp * config: remove unused error type * config: make path and members not optional, return an error on config creation if it exists, pass default tor config to send if not set * arti: non public runtime wrapper * config: migrate comments * fix: rpc tests * config: return from cache if exists * config: save disabled tor config when null provided at owner and tor section was not set * config: update tor with args at listener * config: pass pathbuf directly on creation * config: unique tmp file name, setting permissions and providing config version * fix global config handling * fix config persistence * fix tor service restart * fix config synchronization * require wallet close before changing data directory * unify global config updates --------- Co-authored-by: wiesche <wiesche89@googlemail.com>
This commit is contained in:
committed by
wiesche
co-authored by
wiesche
parent
09aebadce0
commit
9e3ec0ed5b
@@ -326,6 +326,12 @@ pub enum Error {
|
||||
GenericError(String),
|
||||
}
|
||||
|
||||
impl From<grin_wallet_config::ConfigError> for Error {
|
||||
fn from(error: grin_wallet_config::ConfigError) -> Error {
|
||||
Error::GenericError(format!("{}", error))
|
||||
}
|
||||
}
|
||||
|
||||
impl From<grin_store::Error> for Error {
|
||||
fn from(error: grin_store::Error) -> Error {
|
||||
Error::Backend(format!("{}", error))
|
||||
|
||||
Reference in New Issue
Block a user