diff --git a/Cargo.lock b/Cargo.lock index 7e9819f..2f8d56f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -452,7 +452,7 @@ dependencies = [ [[package]] name = "ethereum-consensus" version = "0.1.0" -source = "git+https://github.com/datachainlab/ethereum-light-client-rs?rev=v0.1.4#8ef10cf5982d28cb9d71b126ca41d364dda18788" +source = "git+https://github.com/datachainlab/ethereum-light-client-rs?rev=v0.1.5#6c2b3b0f1a58c4df3eedeb9a36de0e7fcab25007" dependencies = [ "displaydoc", "hex", @@ -478,7 +478,7 @@ dependencies = [ [[package]] name = "ethereum-ibc" version = "0.1.0" -source = "git+https://github.com/datachainlab/ethereum-ibc-rs?rev=v0.0.16#8243b634ae0953a9e0c2fd5f64c2b830723ab8f6" +source = "git+https://github.com/datachainlab/ethereum-ibc-rs?rev=v0.0.17#23cba6fe3ff87df2ac8d4350a49a4c2811e5e156" dependencies = [ "bytes", "displaydoc", @@ -498,7 +498,7 @@ dependencies = [ [[package]] name = "ethereum-ibc-proto" version = "0.1.0" -source = "git+https://github.com/datachainlab/ethereum-ibc-rs?rev=v0.0.16#8243b634ae0953a9e0c2fd5f64c2b830723ab8f6" +source = "git+https://github.com/datachainlab/ethereum-ibc-rs?rev=v0.0.17#23cba6fe3ff87df2ac8d4350a49a4c2811e5e156" dependencies = [ "prost", "serde", @@ -507,7 +507,7 @@ dependencies = [ [[package]] name = "ethereum-light-client-verifier" version = "0.1.0" -source = "git+https://github.com/datachainlab/ethereum-light-client-rs?rev=v0.1.4#8ef10cf5982d28cb9d71b126ca41d364dda18788" +source = "git+https://github.com/datachainlab/ethereum-light-client-rs?rev=v0.1.5#6c2b3b0f1a58c4df3eedeb9a36de0e7fcab25007" dependencies = [ "displaydoc", "ethereum-consensus", diff --git a/Cargo.toml b/Cargo.toml index 9b5037d..bc702e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,4 +9,4 @@ displaydoc = { version = "0.2", default-features = false } tiny-keccak = { version = "1.4" } light-client = { git = "https://github.com/datachainlab/lcp", rev = "v0.2.11", default-features = false, features = ["ibc"] } -ethereum-ibc = { git = "https://github.com/datachainlab/ethereum-ibc-rs", rev = "v0.0.16", default-features = false } +ethereum-ibc = { git = "https://github.com/datachainlab/ethereum-ibc-rs", rev = "v0.0.17", default-features = false } diff --git a/src/client.rs b/src/client.rs index 52633c3..11dd667 100644 --- a/src/client.rs +++ b/src/client.rs @@ -117,13 +117,10 @@ impl LightClient for EthereumLightClient LightClient for EthereumLightClient EthereumLightClient .try_into() .map_err(Error::ICS02)?; - if client_state.is_frozen() { - return Err(Error::ICS02(ClientError::ClientFrozen { - client_id: client_id.into(), - }) - .into()); - } - let consensus_state: ConsensusState = IBCAny::from(ctx.consensus_state(&client_id, &proof_height)?) .try_into() @@ -236,13 +228,6 @@ impl EthereumLightClient .try_into() .map_err(Error::ICS02)?; - if client_state.is_frozen() { - return Err(Error::ICS02(ClientError::ClientFrozen { - client_id: client_id.into(), - }) - .into()); - } - let height = header.height().into(); let header_timestamp: Time = header.timestamp().into(); let trusted_height = header.trusted_sync_committee.height; @@ -322,13 +307,6 @@ impl EthereumLightClient .try_into() .map_err(Error::ICS02)?; - if client_state.is_frozen() { - return Err(Error::ICS02(ClientError::ClientFrozen { - client_id: client_id.into(), - }) - .into()); - } - let trusted_height = misbehaviour.trusted_sync_committee.height; let trusted_consensus_state: ConsensusState = IBCAny::from( ctx.consensus_state(&client_id, &trusted_height.into()) diff --git a/src/state.rs b/src/state.rs index 5a89324..b1fe36d 100644 --- a/src/state.rs +++ b/src/state.rs @@ -5,13 +5,12 @@ use light_client::commitments::{gen_state_id_from_any, StateID}; use light_client::types::proto::google::protobuf::Any as IBCAny; // canonicalize_client_state canonicalizes some fields of specified client state -// target fields: latest_execution_block_number, frozen_height +// target fields: latest_execution_block_number pub fn canonicalize_client_state( client_state: ClientState, ) -> ClientState { let mut client_state = client_state; client_state.latest_execution_block_number = 0u64.into(); - client_state.frozen_height = None; client_state }