From ba96bb6c063641debcbe2baf2c0f8e52e133f89a Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Fri, 4 Jul 2025 11:48:56 +0100 Subject: [PATCH] fix: skip syncing screen if node is not bitcoind This screen will be skipped in any case, but this way we don't show the initial sync progress as being 0%. --- liana-gui/src/loader.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/liana-gui/src/loader.rs b/liana-gui/src/loader.rs index 0267ad88..a1c49f5a 100644 --- a/liana-gui/src/loader.rs +++ b/liana-gui/src/loader.rs @@ -34,7 +34,10 @@ use crate::{ wallet::{Wallet, WalletError}, }, daemon::{client, embedded::EmbeddedDaemon, model::*, Daemon, DaemonError}, - node::bitcoind::{internal_bitcoind_debug_log_path, Bitcoind, StartInternalBitcoindError}, + node::{ + bitcoind::{internal_bitcoind_debug_log_path, Bitcoind, StartInternalBitcoindError}, + NodeType, + }, }; const SYNCING_PROGRESS_1: &str = "Bitcoin Core is synchronising the blockchain. A full synchronisation typically takes a few days and is resource-intensive. Once the initial synchronisation is done, the next ones will be much faster."; @@ -156,9 +159,9 @@ impl Loader { daemon: Arc, info: GetInfoResult, ) -> Task { - // If the wallet was previously synced (blockheight > 0), load the - // application directly. - if info.block_height > 0 { + // If the node is not Bitcoin Core or otherwise the wallet was previously synced (blockheight > 0), + // load the application directly. + if daemon.backend().node_type() != Some(NodeType::Bitcoind) || info.block_height > 0 { return Task::perform( load_application( self.wallet_settings.clone(),