From 8583de85e9774dbd97a579a188b53d951906f1ac Mon Sep 17 00:00:00 2001 From: Daksh <41485688+Daksh14@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:26:28 -0400 Subject: [PATCH] rusk-wallet: Move is_synced inside the loop of interactive --- rusk-wallet/src/bin/interactive.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rusk-wallet/src/bin/interactive.rs b/rusk-wallet/src/bin/interactive.rs index bdde32c80d..bae1f1528e 100644 --- a/rusk-wallet/src/bin/interactive.rs +++ b/rusk-wallet/src/bin/interactive.rs @@ -66,9 +66,8 @@ pub(crate) async fn run_loop( AddrSelect::Exit => std::process::exit(0), }; - let is_synced = wallet.is_synced().await?; - loop { + let is_synced = wallet.is_synced().await?; // get balance for this address prompt::hide_cursor()?; let moonlight_bal = wallet.get_moonlight_balance(addr_idx).await?;