diff --git a/.changelog/unreleased/bug-fixes/1456-fix-max-wait-tries.md b/.changelog/unreleased/bug-fixes/1456-fix-max-wait-tries.md new file mode 100644 index 0000000000..fdf18ff5ec --- /dev/null +++ b/.changelog/unreleased/bug-fixes/1456-fix-max-wait-tries.md @@ -0,0 +1,2 @@ +- Client: Fixed an off-by-one error to stop waiting for start or catch-up when + max tries are reached. ([\#1456](https://github.com/anoma/namada/pull/1456)) \ No newline at end of file diff --git a/apps/src/bin/namada-client/cli.rs b/apps/src/bin/namada-client/cli.rs index b33ccf87f2..95dc13f4f1 100644 --- a/apps/src/bin/namada-client/cli.rs +++ b/apps/src/bin/namada-client/cli.rs @@ -179,7 +179,7 @@ async fn wait_until_node_is_synched(ledger_address: &TendermintAddress) { if is_at_least_height_one && !is_catching_up { return; } else { - if try_count > MAX_TRIES { + if try_count == MAX_TRIES { println!( "Node is still catching up, wait for it to finish \ synching."