Skip to content
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

Implement clear packets command #1834

Merged
merged 17 commits into from
Feb 14, 2022
Merged

Implement clear packets command #1834

merged 17 commits into from
Feb 14, 2022

Commits on Feb 1, 2022

  1. Make self immutable on some methods of Link

    Mutability does not seem to be required, and this guarantees we can
    reuse the same Link instance for receiving and acking packets in turn.
    mzabaluev committed Feb 1, 2022
    Configuration menu
    Copy the full SHA
    3dffc2a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7fd297c View commit details
    Browse the repository at this point in the history
  3. Changelog for #1834

    mzabaluev committed Feb 1, 2022
    Configuration menu
    Copy the full SHA
    a67ec51 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2022

  1. Configuration menu
    Copy the full SHA
    5a80326 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2022

  1. Configuration menu
    Copy the full SHA
    4bb294c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2d05671 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c00696a View commit details
    Browse the repository at this point in the history
  4. Interleave recv and ack in each direction

    When processing pending packets for the `clear packets` command,
    schedule RecvPacket in both directions before proceeding with
    AckPacket, also in both directions. This ensures we process also the
    acks created by the packets just received.
    mzabaluev committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    667faca View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2022

  1. Configuration menu
    Copy the full SHA
    248940d View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2022

  1. No need for counterparty

    ancazamfir committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    98b2a5c View commit details
    Browse the repository at this point in the history
  2. Clarify help on clear packets command

    There is no longer a "source" chain, but we need to clarify that both
    directions of the channel are cleared even though only one end is used
    for identification.
    mzabaluev committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    df6c3d7 View commit details
    Browse the repository at this point in the history
  3. Fix a syntax error

    mzabaluev committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    aef0e6a View commit details
    Browse the repository at this point in the history
  4. Improve logging in proven_packet

    Use a span and KV pairs to provide the context in
    ChainEndpoint::build_packet_proofs, so the log event macro
    invocations are short and to the point.
    mzabaluev committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    8ab1a72 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0970302 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2022

  1. Implement Link::reverse naively

    This is the slowest implementation, not optimizing on any shared state
    or eliminating redundant checks.
    mzabaluev committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    0521081 View commit details
    Browse the repository at this point in the history
  2. Add tx confirmation flag to Link::reverse

    This is an option on Link::new_from_opts, so it seems logical to
    also make it optional on the same level API.
    mzabaluev committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    13869cf View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2022

  1. Configuration menu
    Copy the full SHA
    3f73fb9 View commit details
    Browse the repository at this point in the history