From d2c5bdb53fcef36fee45808f8abcad6d315f3482 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Wed, 5 Jun 2024 16:52:50 +0300 Subject: [PATCH] fix: wallet tx from node flag setup --- src/wallet/wallet.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet.rs b/src/wallet/wallet.rs index 2a09ae9..9f02526 100644 --- a/src/wallet/wallet.rs +++ b/src/wallet/wallet.rs @@ -1184,6 +1184,8 @@ fn start_sync(wallet: Wallet) -> Thread { /// Retrieve [`WalletData`] from local base or node. fn sync_wallet_data(wallet: &Wallet, from_node: bool) { + let fresh_sync = wallet.get_data().is_none(); + // Update info sync progress at separate thread. let wallet_info = wallet.clone(); let (info_tx, info_rx) = mpsc::channel::(); @@ -1403,7 +1405,7 @@ fn sync_wallet_data(wallet: &Wallet, from_node: bool) { can_finalize, conf_height, repost_height, - from_node + from_node: !fresh_sync || from_node }); }