Commit 94b7ac9
committed
Make channel-upgrade execute command fully idempotent
The channel-upgrade execute command is basically idempotent.
However, since proposed upgrades are deleted after the channel
upgrade completes, re-running the command previously failed with
the error: "Error: channel upgrade is not initialized."
This behavior caused instability in tests such as:
https://github.com/datachainlab/cosmos-ethereum-ibc-lcp/blob/v0.2.24/tests/e2e/cases/tm2eth/scripts/test-channel-upgrade#L122
To address this, the command now exits with exit code 0 even when
no proposed upgrades exist. Although some users might forget to
run the channel-upgrade init command, they will be notified through
the newly added log message.
Signed-off-by: Takeshi Arabiki <takeshi.arabiki@datachain.jp>1 parent 2f856cc commit 94b7ac9
File tree
2 files changed
+20
-4
lines changed- core
- tests/cases/tm2tm/scripts
2 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
386 | | - | |
387 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
| |||
394 | 397 | | |
395 | 398 | | |
396 | 399 | | |
397 | | - | |
| 400 | + | |
398 | 401 | | |
399 | 402 | | |
400 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
0 commit comments