-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport "Add list of sequence numbers to clear pending CLI" to v.1.7…
….x (#3772) * Remove unused code for encoding a `Packet` into a `Vec<abci::EventAttribute>` (#3769) * Add list of sequence numbers to clear pending CLI (#3751) * 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> * Fix clippy warnings --------- Co-authored-by: Anca Zamfir <ancazamfir@users.noreply.github.com>
- Loading branch information
1 parent
77dc183
commit f3302db
Showing
27 changed files
with
589 additions
and
248 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.