Skip to content

Commit 8a75e3b

Browse files
plaferancazamfir
andauthored
Replace check_header_and_update_state with an architecture similar to ibc-go (#584)
* fix * changelog * verify_header contains a FIXME to double check * fix header.trusted_next_validator_set hash bug * fmt * remove bad comment * add timestamp monotonicity checks to `verify_header()` * clean up verify_header * add revision number check in verify_header * header height extra check * clarifying comment * check_misbehaviour_header scaffolding * remove duplicate methods * verify_misbehaviour done as ibc-go * fix chain ID before commit verification * finish verify_misbehavior * `check_for_misbehaviour` header variant implementation * check_for_misbehaviour, misbehaviour variant * monotonicity of timestamps in update_client * update_state_on_misbehaviour * implement update_state in tendermint light client * cleanup `map_err`s * Rename MsgUpdateClient::client_message * impl raw misbehaviour -> MsgUpdateClient * change updateClientKind enum * move misbehaviour tests to update_client * move misbehaviour type url * remove misbehaviour msg and handler * update_client::validate * implement part of update_client::execute * separate events emitted * finish update_client::execute * remove TODO * implement mock client state * fix mockclientstate * fix event created on update_client * fix mock * fix mock * test var names * fix parts of the problem with test * fix test * clippy * remove old methods * clean Misbehaviour::new() * cleanup unused * move `update_client` method to submodule * move misbehaviour to submodule * move implementation to function * move implementation to function * changelog * add clarifying comment * fmt * Update crates/ibc/src/clients/ics07_tendermint/client_state/misbehaviour.rs Co-authored-by: Anca Zamfir <[email protected]> Signed-off-by: Philippe Laferrière <[email protected]> * Update crates/ibc/src/clients/ics07_tendermint/client_state/update_client.rs Co-authored-by: Anca Zamfir <[email protected]> Signed-off-by: Philippe Laferrière <[email protected]> * Update crates/ibc/src/clients/ics07_tendermint/client_state/misbehaviour.rs Co-authored-by: Anca Zamfir <[email protected]> Signed-off-by: Philippe Laferrière <[email protected]> * fix misbehaviour ctor * improve documentation around `UpdateKind` * fmt * remove unused misbehaviour trait * fix misbehaviour header checks * Update crates/ibc/src/clients/ics07_tendermint/client_state/update_client.rs Co-authored-by: Anca Zamfir <[email protected]> Signed-off-by: Philippe Laferrière <[email protected]> * fix test after merge --------- Signed-off-by: Philippe Laferrière <[email protected]> Co-authored-by: Anca Zamfir <[email protected]>
1 parent 707d032 commit 8a75e3b

28 files changed

+1046
-1022
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- `ClientState`: Split `check_misbehaviour_and_update_state`
2+
and `check_header_and_update_state`
3+
([#535](https://github.com/cosmos/ibc-rs/issues/535))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Tendermint light client: fix missing trusted_validator_set
2+
hash check
3+
([#583](https://github.com/cosmos/ibc-rs/issues/583))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Tendermint light client: fix missing `Header.height()`
2+
vs `Header.trusted_height` check
3+
([#585](https://github.com/cosmos/ibc-rs/issues/585))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Tendermint light client: ensure that we use the correct
2+
chain ID in commit verification
3+
([#589](https://github.com/cosmos/ibc-rs/issues/589))
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- Tendermint light client: add check that ensure that
2+
the consensus state timestamps are monotonic, otherwise
3+
freeze the client
4+
([#598](https://github.com/cosmos/ibc-rs/issues/598))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Tendermint light client: fix how the client's latest
2+
height is updated
3+
([#601](https://github.com/cosmos/ibc-rs/issues/601))

0 commit comments

Comments
 (0)