mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-27 18:04:28 +01:00
Persist wallet cache in db (#912)
* Persist wallet cache in db * Always persist new updates * Reload wallet on conflict * Remove `cache_dir` from `Config`
This commit is contained in:
@@ -19,9 +19,6 @@ pub(crate) struct Args {
|
||||
#[clap(long, action)]
|
||||
pub(crate) no_data_sync: bool,
|
||||
|
||||
#[clap(short, long)]
|
||||
pub(crate) cache_dir: Option<String>,
|
||||
|
||||
#[clap(short, long)]
|
||||
pub(crate) log_file: Option<String>,
|
||||
|
||||
@@ -89,7 +86,6 @@ async fn main() -> Result<()> {
|
||||
.map(|var| var.into_string().expect("Expected valid API key string"));
|
||||
let mut config = LiquidSdk::default_config(network, breez_api_key)?;
|
||||
config.working_dir = data_dir_str;
|
||||
config.cache_dir = args.cache_dir;
|
||||
if args.no_data_sync {
|
||||
config.sync_service_url = None;
|
||||
} else if data_sync_url.is_some() {
|
||||
|
||||
Reference in New Issue
Block a user