mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
cli: Add command line option to specify the wallet location
Will be demuxed into starting the selected DB backend in one of the next commits. Defaults to the old database location. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
96a22b4003
commit
5953a5051c
@@ -808,6 +808,11 @@ static void handle_minimal_config_opts(struct lightningd *ld,
|
||||
opt_ignore_talstr, opt_show_charp,
|
||||
&ld->config_dir,
|
||||
"Set working directory. All other files are relative to this");
|
||||
|
||||
ld->wallet_dsn = tal_fmt(ld, "sqlite3://%s/lightningd.sqlite3", ld->config_dir);
|
||||
opt_register_early_arg("--wallet", opt_set_talstr, NULL,
|
||||
&ld->wallet_dsn,
|
||||
"Location of the wallet database.");
|
||||
}
|
||||
|
||||
static void register_opts(struct lightningd *ld)
|
||||
|
||||
Reference in New Issue
Block a user