fix: wallet tx from node flag setup
This commit is contained in:
parent
eab88094db
commit
d2c5bdb53f
1 changed files with 3 additions and 1 deletions
|
@ -1184,6 +1184,8 @@ fn start_sync(wallet: Wallet) -> Thread {
|
||||||
|
|
||||||
/// Retrieve [`WalletData`] from local base or node.
|
/// Retrieve [`WalletData`] from local base or node.
|
||||||
fn sync_wallet_data(wallet: &Wallet, from_node: bool) {
|
fn sync_wallet_data(wallet: &Wallet, from_node: bool) {
|
||||||
|
let fresh_sync = wallet.get_data().is_none();
|
||||||
|
|
||||||
// Update info sync progress at separate thread.
|
// Update info sync progress at separate thread.
|
||||||
let wallet_info = wallet.clone();
|
let wallet_info = wallet.clone();
|
||||||
let (info_tx, info_rx) = mpsc::channel::<StatusMessage>();
|
let (info_tx, info_rx) = mpsc::channel::<StatusMessage>();
|
||||||
|
@ -1403,7 +1405,7 @@ fn sync_wallet_data(wallet: &Wallet, from_node: bool) {
|
||||||
can_finalize,
|
can_finalize,
|
||||||
conf_height,
|
conf_height,
|
||||||
repost_height,
|
repost_height,
|
||||||
from_node
|
from_node: !fresh_sync || from_node
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue