diff --git a/Cargo.lock b/Cargo.lock index a7cbd833a..045c68b66 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2821,34 +2821,12 @@ dependencies = [ "toml", ] -[[package]] -name = "liana" -version = "8.0.0" -source = "git+https://github.com/wizardsardine/liana?branch=master#f3206f9dfadbedb7a46aaa85996c11172c875588" -dependencies = [ - "backtrace", - "bdk_coin_select", - "bdk_electrum", - "bip39", - "dirs 5.0.1", - "fern", - "getrandom", - "jsonrpc 0.17.0", - "log", - "miniscript", - "rdrand", - "rusqlite", - "serde", - "serde_json", - "toml", -] - [[package]] name = "liana-fuzz" version = "0.0.0" dependencies = [ "arbitrary", - "liana 8.0.0", + "liana", "libfuzzer-sys", "secp256k1 0.28.2", ] @@ -2870,7 +2848,7 @@ dependencies = [ "iced", "iced_runtime", "jsonrpc 0.12.1", - "liana 8.0.0 (git+https://github.com/wizardsardine/liana?branch=master)", + "liana", "liana-ui", "log", "reqwest", diff --git a/contrib/reproducible/guix/build.sh b/contrib/reproducible/guix/build.sh index 9af2d6624..b0e736d79 100755 --- a/contrib/reproducible/guix/build.sh +++ b/contrib/reproducible/guix/build.sh @@ -13,11 +13,6 @@ directory = "/vendor" [source.crates-io] replace-with = "vendored_sources" -[source."https://github.com/wizardsardine/liana"] -git = "https://github.com/wizardsardine/liana" -branch = "master" -replace-with = "vendored_sources" - [source."https://github.com/edouardparis/iced"] git = "https://github.com/edouardparis/iced" branch = "patch-0.12.3" diff --git a/liana-gui/Cargo.toml b/liana-gui/Cargo.toml index e020a54be..94ba004e3 100644 --- a/liana-gui/Cargo.toml +++ b/liana-gui/Cargo.toml @@ -16,7 +16,7 @@ path = "src/main.rs" [dependencies] async-trait = "0.1" async-hwi = { version = "0.0.24" } -liana = { git = "https://github.com/wizardsardine/liana", branch = "master", default-features = false, features = ["nonblocking_shutdown"] } +liana = { path = "../liana", default-features = false, features = ["nonblocking_shutdown"] } liana-ui = { path = "../liana-ui" } backtrace = "0.3" hex = "0.4.3" diff --git a/liana-gui/src/daemon/embedded.rs b/liana-gui/src/daemon/embedded.rs index c4f77d7ae..5bb399c8f 100644 --- a/liana-gui/src/daemon/embedded.rs +++ b/liana-gui/src/daemon/embedded.rs @@ -18,7 +18,8 @@ pub struct EmbeddedDaemon { impl EmbeddedDaemon { pub fn start(config: Config) -> Result { - let handle = DaemonHandle::start_default(config.clone()).map_err(DaemonError::Start)?; + let handle = + DaemonHandle::start_default(config.clone(), false).map_err(DaemonError::Start)?; Ok(Self { handle: Mutex::new(Some(handle)), config, @@ -31,6 +32,7 @@ impl EmbeddedDaemon { { match self.handle.lock().await.as_mut() { Some(DaemonHandle::Controller { control, .. }) => method(control), + Some(_) => unreachable!("No lianad rpc server must be started"), None => Err(DaemonError::DaemonStopped), } } diff --git a/liana-gui/src/installer/mod.rs b/liana-gui/src/installer/mod.rs index e0adac8f2..f78f097b2 100644 --- a/liana-gui/src/installer/mod.rs +++ b/liana-gui/src/installer/mod.rs @@ -334,7 +334,7 @@ impl Installer { pub fn daemon_check(cfg: liana::config::Config) -> Result<(), Error> { // Start Daemon to check correctness of installation - match liana::DaemonHandle::start_default(cfg) { + match liana::DaemonHandle::start_default(cfg, false) { Ok(daemon) => daemon .stop() .map_err(|e| Error::Unexpected(format!("Failed to stop Liana daemon: {}", e))), @@ -685,8 +685,6 @@ pub async fn extract_local_gui_settings(ctx: &Context) -> Settings { pub fn extract_daemon_config(ctx: &Context) -> Config { Config { - #[cfg(unix)] - daemon: false, log_level: log::LevelFilter::Info, main_descriptor: ctx .descriptor