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

Add evidence command for monitoring and reporting misbehavior evidence to counterparty clients #3456

Merged
merged 105 commits into from
Oct 18, 2023

Commits on Jun 21, 2023

  1. evidence worker PoC for testing

    ancazamfir authored and romac committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    ab01656 View commit details
    Browse the repository at this point in the history
  2. Cleanup

    romac committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    0d6df8d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1709d1a View commit details
    Browse the repository at this point in the history
  4. Add MsgSubmitIcsConsumerMisbehaviour domain type from `anca/ics-mis…

    …behaviour-handling` branch
    romac committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    fc3aea4 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

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

Commits on Jun 28, 2023

  1. Cleanup

    romac committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    db9187e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2fa3287 View commit details
    Browse the repository at this point in the history
  3. Cleanup

    romac committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    700521f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ffc6d67 View commit details
    Browse the repository at this point in the history
  5. Cleanup

    romac committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    1e85c83 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Add comment

    romac committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    9f965aa View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. Configuration menu
    Copy the full SHA
    b6605d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9de7224 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Configuration menu
    Copy the full SHA
    93c81b4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d4e73ce View commit details
    Browse the repository at this point in the history
  3. Update Data-Requirements.md

    Signed-off-by: Romain Ruetschi <[email protected]>
    romac committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    a4b7767 View commit details
    Browse the repository at this point in the history
  4. Update Data-Requirements.md

    Signed-off-by: Romain Ruetschi <[email protected]>
    romac committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    49f8ac1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    84b59e0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    75ec1b3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7854b2c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cfd005b View commit details
    Browse the repository at this point in the history
  9. Document clock drift parameters in guide (#3420)

    * Add clock-drift.md file to guide
    
    * Add section on mis-configuring clock drift
    
    * Update guide/src/advanced/troubleshooting/clock-drift.md
    
    Co-authored-by: Anca Zamfir <[email protected]>
    Signed-off-by: Sean Chen <[email protected]>
    
    * Update guide/src/advanced/troubleshooting/clock-drift.md
    
    Co-authored-by: Anca Zamfir <[email protected]>
    Signed-off-by: Sean Chen <[email protected]>
    
    * Remove redundant section
    
    * Update guide/src/advanced/troubleshooting/clock-drift.md
    
    Co-authored-by: Anca Zamfir <[email protected]>
    Signed-off-by: Sean Chen <[email protected]>
    
    * Update guide/src/advanced/troubleshooting/clock-drift.md
    
    Co-authored-by: Anca Zamfir <[email protected]>
    Signed-off-by: Sean Chen <[email protected]>
    
    * Explain what `C` constant represents
    
    * Add reference to forward lunatic attack
    
    ---------
    
    Signed-off-by: Sean Chen <[email protected]>
    Co-authored-by: Anca Zamfir <[email protected]>
    2 people authored and romac committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    2e6b2d4 View commit details
    Browse the repository at this point in the history
  10. Bump uuid from 1.3.3 to 1.4.0 (#3461)

    Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.3.3 to 1.4.0.
    - [Release notes](https://github.com/uuid-rs/uuid/releases)
    - [Commits](uuid-rs/uuid@1.3.3...1.4.0)
    
    ---
    updated-dependencies:
    - dependency-name: uuid
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and romac committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    fa4b990 View commit details
    Browse the repository at this point in the history
  11. Fix wrong sequence number in MsgTimeoutOnClose (#3440)

    The MsgTimeoutOnClose requires sequence of dstchannel.NextRecv in ordered channels, rather than packet.Sequence.
    The code above resolve the sequence for ordered and unordered, just while creating msg it is ignored.
    
    Signed-off-by: Puneet <[email protected]>
    puneet2019 authored and romac committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    b10d758 View commit details
    Browse the repository at this point in the history
  12. Include client updates for supporting messages when assembling messag…

    …es to relay from the operational data (#3468)
    
    * Include client updates for supporting messages when assembling messages to relay from the operational data
    
    * Add changelog entry
    romac committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    a929e05 View commit details
    Browse the repository at this point in the history
  13. Use max_expected_time_per_block value for the max_block_time (#3467)

    * Use max_block_time queried from /genesis
    
    * Clean solution
    
    * Add unclog entry
    
    * Remove serde-with dependency
    ljoss17 authored and romac committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    71d5f30 View commit details
    Browse the repository at this point in the history
  14. config auto now generates a config file even when it encounters an …

    …error (#3466)
    
    * Stub out code flow
    
    * Stub out code flow
    
    * Change return type of `hermes_cofig` fn
    
    * Define ConfigAutoError type
    
    * Add some printlns
    
    * Change `get_configs` return type
    
    * Change AutoCmd::run
    
    * Get it to compile
    
    * Fix false reporting of missing chain configs
    
    * Change get_data_from_handles
    
    * Get it working
    
    * Remove some debugging code
    
    * Cargo fmt
    
    * Update `get_configs` doc comment
    
    * Update gas price warning in guide
    
    * Cargo fmt
    seanchen1991 authored and romac committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    c0ed9a3 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    5846cb9 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    a5f768e View commit details
    Browse the repository at this point in the history
  17. Add forking script

    romac committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    c620e9b View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    67bc213 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. Add ICS misbehaviour test

    romac committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    2cbae73 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    589f75a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ed587c9 View commit details
    Browse the repository at this point in the history
  4. Remove test script

    romac committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    0ef0607 View commit details
    Browse the repository at this point in the history
  5. Update guide templates

    romac committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    d025043 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

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

Commits on Aug 10, 2023

  1. Configuration menu
    Copy the full SHA
    b748ef1 View commit details
    Browse the repository at this point in the history
  2. Post-merge fixes

    romac committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    043cb03 View commit details
    Browse the repository at this point in the history
  3. Update deps

    romac committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    44fbe36 View commit details
    Browse the repository at this point in the history
  4. Use latest ICS protos

    romac committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    7d0b146 View commit details
    Browse the repository at this point in the history
  5. Adapt to change of MsgSubmitIcsConsumerMisbehaviour::misbehaviour t…

    …o `Any` in upstream protos
    romac committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    5ff82a9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ecfb092 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. Configuration menu
    Copy the full SHA
    6cfe8e3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5684b8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b62286f View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Formatting

    romac committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    bdd908b View commit details
    Browse the repository at this point in the history
  2. Fix clippy warnings

    romac committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    8043763 View commit details
    Browse the repository at this point in the history
  3. Update guide templates

    romac committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    be8940b View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. fix: send evidences with non-empty infraction block header (#3578)

    * try to fill infraction header in double voting msg
    
    * reformat
    
    * fix nit
    
    * fmt
    
    * Formatting
    
    * Make infraction block header required
    
    * Stop after submitting double voting evidence to the provider
    
    * Force refresh of account before sending a tx
    
    * Revert refresh on every call
    
    * Remove hermes binary at root
    
    * Send ICS misbehaviour for CCV consumer chain in misbehaviour worker
    
    * Make the evidence command resilient to error, eg. because a client was already frozen
    
    * Improve logging
    
    * Go back to refreshing the account everytime
    
    * Improve CI test script
    
    * Improve logs
    
    * Add `key-name` and `check-past-blocks` arguments to `evidence` command (#3603)
    
    * Add `key-name` and `check-past-blocks` arguments to `evidence` command
    
    * Update templates
    
    * Better logs
    
    * Update nix flake
    
    * Patch check-guide tool with CCV protos
    
    * Do not refresh account everytime
    
    * Fix for zero height
    
    * Update ICS misbehaviour test to use a different wallet for the `evidence` command
    
    * Remove double sign script
    
    ---------
    
    Co-authored-by: Romain Ruetschi <[email protected]>
    sainoe and romac authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    b6d03a1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61b7f81 View commit details
    Browse the repository at this point in the history
  3. Fix post-merge conflict

    romac committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    ff10df1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f33f868 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7a1b293 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    47193cb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    352332f View commit details
    Browse the repository at this point in the history
  8. WIP: Add double sign test

    romac committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    c0581d3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f5d3729 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    344f3a8 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. Update flake lockfile

    romac committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    5c7e87a View commit details
    Browse the repository at this point in the history
  2. Better logs in evidence command

    romac committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    8b6141d View commit details
    Browse the repository at this point in the history
  3. Rename jobs and script

    romac committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    b1a2db5 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2023

  1. Fix evidence submission (#3612)

    * Fix evidence submission by using fix in custom branch tendermint-rs
    
    * Check that evidence command saw the evidence in the block
    
    * Skip submitting evidence if client is already frozen or expired
    
    * Skip frozen clients
    
    * Add more delay in standard misbehaviour test
    
    * Use latest tendermint-rs
    romac authored Sep 26, 2023
    Configuration menu
    Copy the full SHA
    fd26a58 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

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

    romac committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    4762131 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cfcc312 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7aa77c7 View commit details
    Browse the repository at this point in the history
  5. Update ibc-proto

    romac committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    0a7f5eb View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2023

  1. Update ibc-proto to v0.36.0

    romac committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    f025aa6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    39adcc6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ac48352 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. Configuration menu
    Copy the full SHA
    7985ae9 View commit details
    Browse the repository at this point in the history
  2. Add changelog entries

    romac committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    c17cc98 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. Show logs on failure

    romac committed Oct 2, 2023
    Configuration menu
    Copy the full SHA
    b746151 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. Update ibc-proto to v0.36.1

    romac committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    8fb5e93 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2023

  1. Configuration menu
    Copy the full SHA
    cd7333e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bf3b98e View commit details
    Browse the repository at this point in the history
  3. Improve logs

    romac committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    c7ec073 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f392f1e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9b9e898 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d9c267e View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

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

Commits on Oct 7, 2023

  1. Fix clippy warning

    ancazamfir committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    9ae80dd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    51cb1f9 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

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

Commits on Oct 13, 2023

  1. Configuration menu
    Copy the full SHA
    afdc3cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9cb4d3e View commit details
    Browse the repository at this point in the history
  3. Update flake

    romac committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    e4a4054 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6da442a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f1b83fe View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    136e25b View commit details
    Browse the repository at this point in the history
  7. Detect and report misbehaviour using the CometBFT light client to avo…

    …id freezing the client too early
    romac committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    8bfb121 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

  1. Configuration menu
    Copy the full SHA
    2300d6c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea73fc0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d39546d View commit details
    Browse the repository at this point in the history
  4. Never send IBC message if client is already frozen

    Co-authored-by: Anca Zamfir <[email protected]>
    Signed-off-by: Romain Ruetschi <[email protected]>
    romac and ancazamfir authored Oct 16, 2023
    Configuration menu
    Copy the full SHA
    78e2ed7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3e8b37f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    530a979 View commit details
    Browse the repository at this point in the history
  7. Update comment

    romac committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    992afc3 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

  1. Update double sign test

    romac committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    4c3a8ad View commit details
    Browse the repository at this point in the history
  2. Skip UpdateClient message if counterparty has consensus state at comm…

    …on height, whether or not it is a provider chain
    romac committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    c27b9e4 View commit details
    Browse the repository at this point in the history
  3. Improve logs a little bit

    romac committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    116f141 View commit details
    Browse the repository at this point in the history
  4. Small refactor

    romac committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    c72a270 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    78c1792 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c58c119 View commit details
    Browse the repository at this point in the history