Skip to content

Commit 2c6283f

Browse files
committed
Merge 'origin/tomas/fix-max-wait-tries' into draft (#1456)
* origin/tomas/fix-max-wait-tries: changelog: #1456 client: stop waiting for catch-up when max tries are reached
2 parents dd28154 + 939f291 commit 2c6283f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Client: Fixed an off-by-one error to stop waiting for start or catch-up when
2+
max tries are reached. ([\#1456](https://github.com/anoma/namada/pull/1456))

apps/src/bin/namada-client/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ async fn wait_until_node_is_synched(ledger_address: &TendermintAddress) {
341341
if is_at_least_height_one && !is_catching_up {
342342
return;
343343
} else {
344-
if try_count > MAX_TRIES {
344+
if try_count == MAX_TRIES {
345345
println!(
346346
"Node is still catching up, wait for it to finish \
347347
synching."

0 commit comments

Comments
 (0)