Skip to content

Commit

Permalink
Submit misbehaviour messages using the CCV consumer id (Permissionles…
Browse files Browse the repository at this point in the history
…s ICS) (#4182)

* Submit misbehaviour messages using the CCV consumer id (Permissionless ICS)

* Use Gaia v20 for ICS light client attack integration test

* Fix new clippy warnings

* Update flake.nix

* Update expedited voting period as well

* wip

* wip

* Integrate with tendermint-rs fix for evidence reporting

* Update tendermint-rs

* Update cosmos.nix

* Update tendermint-rs

* Fix evidence submission

* Fix build

* Update double sign test on CI

* Skip localhost clients

* Codespell fix

* Fix error post merge

* Update light client attack test scripts with permissionless ics

* Use pull mode for light client attack test

* Add RPC debug when running Hermes in evidence mode in light client attack test

* Nix flake update

* Bump ibc-proto to v0.49.1

* Fix governance proposal submission with SDK v0.50

* Use Cosmos Nix main branch

* Use tendermint-rs v0.40.0 and ibc-proto-rs v0.51.0

* Fix cargo doc hyper link warning

* nit

* Nix flake update

* Add changelog entry

* Fix compatibility with interchain-security v6.3.0

* Refactor submit_light_client_attack_evidence

* Update crates/relayer/src/chain/cosmos.rs

Co-authored-by: Anca Zamfir <[email protected]>
Signed-off-by: Luca Joss <[email protected]>

* Use fetch_ccv_consumer_id in submit_duplicate_vote_evidence to verify if chain is consumer

* Move query_ccv_consumer_id to Chain Handle trait

---------

Signed-off-by: Luca Joss <[email protected]>
Co-authored-by: Luca Joss <[email protected]>
Co-authored-by: Luca Joss <[email protected]>
Co-authored-by: Anca Zamfir <[email protected]>
  • Loading branch information
4 people authored Nov 6, 2024
1 parent c53a316 commit c3105e9
Show file tree
Hide file tree
Showing 38 changed files with 1,100 additions and 561 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Use CCV consumer ID to submit misbehaviour messages
([\#4153](https://github.com/informalsystems/hermes/issues/4153))
20 changes: 9 additions & 11 deletions .github/workflows/misbehaviour.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ jobs:
fail-fast: false
matrix:
chain:
- package: gaia18
- package: gaia20
command: gaiad
account_prefix: cosmos
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
with:
extra-conf: |
substituters = https://cache.nixos.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- name: Install Cachix
uses: cachix/cachix-action@v15
with:
with:
name: cosmos-nix
- name: Install sconfig
uses: jaxxstorm/[email protected]
Expand Down Expand Up @@ -102,13 +102,13 @@ jobs:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
with:
extra-conf: |
substituters = https://cache.nixos.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- name: Install Cachix
uses: cachix/cachix-action@v15
with:
with:
name: cosmos-nix
- name: Install sconfig
uses: jaxxstorm/[email protected]
Expand Down Expand Up @@ -154,13 +154,13 @@ jobs:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
with:
extra-conf: |
substituters = https://cache.nixos.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- name: Install Cachix
uses: cachix/cachix-action@v15
with:
with:
name: cosmos-nix
- name: Install sconfig
uses: jaxxstorm/[email protected]
Expand Down Expand Up @@ -193,7 +193,6 @@ jobs:
run: |
nix shell .#${{ matrix.chain.package }} -c bash light_client_attack_freeze_test.sh
ics-double-sign:
runs-on: ubuntu-20.04
timeout-minutes: 20
Expand All @@ -207,13 +206,13 @@ jobs:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
with:
extra-conf: |
substituters = https://cache.nixos.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- name: Install Cachix
uses: cachix/cachix-action@v15
with:
with:
name: cosmos-nix
- name: Install sconfig
uses: jaxxstorm/[email protected]
Expand Down Expand Up @@ -245,4 +244,3 @@ jobs:
working-directory: ci/misbehaviour-ics
run: |
nix shell .#${{ matrix.chain.package }} -c bash double_sign_test.sh
80 changes: 48 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 12 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,19 @@ ibc-telemetry = { version = "0.29.3", path = "crates/telemetry" }
ibc-test-framework = { version = "0.29.3", path = "tools/test-framework" }
ibc-integration-test = { version = "0.29.3", path = "tools/integration-test" }

# IBC dependencies
ibc-proto = "0.51.0"
ics23 = "0.12.0"

# Tendermint dependencies
tendermint = { version = "0.38.1", default-features = false }
tendermint-light-client = { version = "0.38.1", default-features = false }
tendermint-light-client-detector = { version = "0.38.1", default-features = false }
tendermint-light-client-verifier = { version = "0.38.1", default-features = false }
tendermint-proto = { version = "0.38.1" }
tendermint-rpc = { version = "0.38.1" }
tendermint-testgen = { version = "0.38.1" }
tendermint = { version = "0.40.0", default-features = false }
tendermint-light-client = { version = "0.40.0", default-features = false }
tendermint-light-client-detector = { version = "0.40.0", default-features = false }
tendermint-light-client-verifier = { version = "0.40.0", default-features = false }
tendermint-proto = { version = "0.40.0" }
tendermint-rpc = { version = "0.40.0" }
tendermint-testgen = { version = "0.40.0" }


# Other dependencies
abscissa_core = "=0.6.0"
Expand Down Expand Up @@ -72,8 +77,6 @@ hex = "0.4.3"
http = "1.0.0"
humantime = "2.1.0"
humantime-serde = "1.1.1"
ibc-proto = "0.47.1"
ics23 = "0.12.0"
itertools = "0.13.0"
moka = "0.12.8"
num-bigint = "0.4"
Expand Down
Loading

0 comments on commit c3105e9

Please sign in to comment.