From 45ae8063b1901353907bedeaf2ce7966b1a13af2 Mon Sep 17 00:00:00 2001 From: Jimmy Claw Date: Mon, 2 Mar 2026 20:58:31 +0000 Subject: [PATCH] =?UTF-8?q?fix(wallet):=20poll=20every=202s=20for=20up=20t?= =?UTF-8?q?o=203=20blocks=20(45s)=20instead=20of=2030=20=C3=97=201s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Block time in lssa is 15s, so 3 blocks = 45s is the right timeout. Polling every 2s (23 attempts) is responsive without hammering the sequencer. --- wallet/src/cli/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wallet/src/cli/mod.rs b/wallet/src/cli/mod.rs index 777ed840..d635f790 100644 --- a/wallet/src/cli/mod.rs +++ b/wallet/src/cli/mod.rs @@ -211,15 +211,15 @@ pub async fn execute_subcommand( let confirmed = wait_for_tx_confirmation( &wallet_core.sequencer_client, tx_hash, - 30, // max attempts - 1000, // ms between polls + 23, // max attempts (3 blocks × 15s, polling every 2s) + 2000, // ms between polls (2s) ) .await?; if !confirmed { anyhow::bail!( "Transaction was not confirmed after timeout. \ - The program may not have been deployed. Check sequencer logs." + Timed out after ~3 blocks (45s). The program may not have been deployed. Check sequencer logs." ); }