fix: wallet tx from node flag setup

This commit is contained in:
ardocrat 2024-06-05 16:52:50 +03:00
parent eab88094db
commit d2c5bdb53f

View file

@ -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::<StatusMessage>();
@ -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
});
}