Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Jun 17, 2024
1 parent 15aa85e commit 166d203
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/ibc/src/context/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ pub trait IbcCommonContext: IbcStorageContext {
description: "No host header".to_string(),
})
})?;
self.log_string(format!("DEBUG: Namada block header {header:?}"));
let commitment_root = header.hash.to_vec().into();
let time = header
.time
Expand Down
4 changes: 3 additions & 1 deletion crates/tests/src/e2e/ibc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,9 @@ fn make_consensus_state(
height: Height,
) -> Result<TmConsensusState> {
let header = query_header(test, height)?;
Ok(TmConsensusState::from(header))
let cs = TmConsensusState::from(header);
println!("DEBUG: consensus state with queried header: {cs:?}");
Ok(cs)
}

fn update_client_with_height(
Expand Down

0 comments on commit 166d203

Please sign in to comment.