diff --git a/modules/src/clients/ics10_grandpa/client_def.rs b/modules/src/clients/ics10_grandpa/client_def.rs index fb0e4c9d9..160f0f8a8 100644 --- a/modules/src/clients/ics10_grandpa/client_def.rs +++ b/modules/src/clients/ics10_grandpa/client_def.rs @@ -95,24 +95,17 @@ impl ClientDef for GrandpaClient { let mmr_leaf_hash = beefy_merkle_tree::Keccak256::hash(&mmr_leaf_encode[..]); let mmr_leaf = beefy_light_client::mmr::MmrLeaf::from(header.clone().mmr_leaf); - let header_hash = header.hash(); - if mmr_leaf.parent_number_and_hash.1.is_empty() { return Err(Error::empty_mmr_leaf_parent_hash_mmr_root()); } - tracing::trace!( - "ics1 client_def :[check_header_and_update_state] >> header_hash = {:?}", - header_hash - ); tracing::trace!( "ics1 client_def :[check_header_and_update_state] >> parent_mmr_root = {:?}", mmr_leaf.parent_number_and_hash.1 ); - /* if header_hash != mmr_leaf.parent_number_and_hash.1 { + if header.block_header.parent_hash != mmr_leaf.parent_number_and_hash.1.to_vec() { return Err(Error::header_hash_not_match()); - }*/ - // Todo: Is this comparism needed? + } tracing::trace!( "in client_def: [check_header_and_update_state] >> mmr_root = {:?}", diff --git a/relayer/src/chain/substrate.rs b/relayer/src/chain/substrate.rs index 6aa270438..12b6250ba 100644 --- a/relayer/src/chain/substrate.rs +++ b/relayer/src/chain/substrate.rs @@ -663,8 +663,8 @@ impl ChainEndpoint for SubstrateChain { proto_msgs: TrackedMsgs, ) -> Result, Error> { tracing::debug!( - "in substrate: [send_messages_and_wait_check_tx], raw msg to send {:?}", - proto_msgs + "in substrate: [send_messages_and_wait_check_tx], url of msg to send {:?}", + proto_msgs.messages().to_vec().iter().map(|value| value.type_url.clone()).collect::>() ); // sleep(Duration::from_secs(4));