mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-03-24 11:13:06 +00:00
fix(wallet): poll every 2s for up to 3 blocks (45s) instead of 30 × 1s
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.
This commit is contained in:
parent
30c78cbfbd
commit
45ae8063b1
@ -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."
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user