-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear packets by specifying a range of sequence numbers to clear #3672
Labels
O: new-feature
Objective: cause to add a new feature or support
Milestone
Comments
7 tasks
I was just about to create an issue for this, I'd like to upvote the value of this! :) |
7 tasks
romac
changed the title
Clear single specific packet via REST and CLI
Clear packets by specifying a range of sequence numbers to clear
Jan 8, 2024
romac
added a commit
that referenced
this issue
Jan 12, 2024
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>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Add a
--packet-sequences=SEQS
flag to theclear packets
CLI for clearing only the packets with the given sequence numbers on the specified chain and channel.Problem definition
See #3750
Proposal
Add a
--packet-sequences
flag to theclear packets
CLI.This flag accepts a list of ranges of sequence numbers to clear (
--packet-sequences=SEQS
), with the following format (in EBNF):Ranges are bounded inclusively below and above. The range
start..end
contains all values withstart <= x <= end
. It is empty ifstart > end
.Examples
1
1
1,2,3
1
,2
, and3
..20
20
10..
10
10..20
10
,11
,12
, ...,20
2,4..6,12,14..17,21,30..
2
,4
,5
,6
,30..,21,12,14..17,4..6,2
The text was updated successfully, but these errors were encountered: