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:
Daniel Granhão
2025-05-22 12:52:29 +01:00
committed by GitHub
parent 30230db377
commit cd0b82cf53
47 changed files with 281 additions and 992 deletions

View File

@@ -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() {