We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd28154 + 939f291 commit 2c6283fCopy full SHA for 2c6283f
2 files changed
.changelog/unreleased/bug-fixes/1456-fix-max-wait-tries.md
@@ -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
@@ -341,7 +341,7 @@ async fn wait_until_node_is_synched(ledger_address: &TendermintAddress) {
341
if is_at_least_height_one && !is_catching_up {
342
return;
343
} else {
344
- if try_count > MAX_TRIES {
+ if try_count == MAX_TRIES {
345
println!(
346
"Node is still catching up, wait for it to finish \
347
synching."
0 commit comments