-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add list of sequence numbers to clear pending CLI (#3751)
Closes: #3672 * Add list of sequence numbers to clear pending CLI * With sequences option only clear the packets from the specified chain and not counterparty * Fix clippy, add sequence test * Update guide template * Allow specifying sequences to clear as a list of ranges (#3756) * Allow specifying sequences to clear as a list of ranges * Make the ranges inclusive * Update guide templates * Add packet-sequences to the packet tx CLIs. * Align and wording * Update guide templates * Improve output of `query packet pending` command * Add integration test for clearing packets by sequence number ranges * Add changelog entry --------- Co-authored-by: Romain Ruetschi <romain@informal.systems>
- Loading branch information
1 parent
47823fb
commit f9a3a2e
Showing
16 changed files
with
529 additions
and
40 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
.changelog/unreleased/features/ibc-relayer-cli/3672-clears-packet-seq.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- Add a `--packet-sequences` flag to the `clear packets`, `tx packet-recv`, and `tx packet-ack` commands. | ||
When this flag is specified, these commands will only clear the packets with the specified sequence numbers | ||
on the given chain. If not provided, all pending packets will be cleared on both chains, as before. | ||
|
||
This flag takes either a single sequence number or a range of sequences numbers. | ||
Each element of the comma-separated list must be either a single sequence number or | ||
a range of sequence numbers. | ||
|
||
Examples: | ||
- `10` will clear a single packet with sequence nymber `10` | ||
- `1,2,3` will clear packets with sequence numbers `1, 2, 3` | ||
- `1..5` will clear packets with sequence numbers `1, 2, 3, 4, 5` | ||
- `..5` will clear packets with sequence numbers `1, 2, 3, 4, 5` | ||
- `5..` will clear packets with sequence numbers greater than or equal to `5` | ||
- `..5,10..20,25,30..` will clear packets with sequence numbers `1, 2, 3, 4, 5, 10, 11, ..., 20, 25, 30, 31, ...` | ||
- `..5,10..20,25,30..` will clear packets with sequence numbers `1, 2, 3, 4, 5, 10, 11, ..., 20, 25, 30, 31, ...` | ||
|
||
([\#3672](https://github.com/informalsystems/hermes/issues/3672)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.