Skip to content

Commit

Permalink
try 9f
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Jun 18, 2024
1 parent 1ffc76f commit 9feeb2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/core/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl Display for DateTimeUtc {
}

impl DateTimeUtc {
const FORMAT: &'static str = "%Y-%m-%dT%H:%M:%S%.6f+00:00";
const FORMAT: &'static str = "%Y-%m-%dT%H:%M:%S%.9f+00:00";

/// Returns a DateTimeUtc which corresponds to the current date.
pub fn now() -> Self {
Expand Down Expand Up @@ -381,7 +381,7 @@ pub mod test_utils {
//! Time related test utilities.

/// Genesis time used during tests.
pub const GENESIS_TIME: &str = "2023-08-30T00:00:00.000000+00:00";
pub const GENESIS_TIME: &str = "2023-08-30T00:00:00.000000000+00:00";
}

#[cfg(test)]
Expand Down
9 changes: 8 additions & 1 deletion crates/tests/src/e2e/ibc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,10 @@ fn make_consensus_state(
) -> Result<TmConsensusState> {
let header = query_header(test, height)?;
let cs = TmConsensusState::from(header);
println!("DEBUG: consensus state with queried header: {cs:?}, at height {height}");
println!(
"DEBUG: consensus state with queried header: {cs:?}, at height \
{height}"
);
Ok(cs)
}

Expand Down Expand Up @@ -1206,6 +1209,10 @@ fn update_client(
.fetch_light_block(height.into())
.expect("the light client couldn't get a light block");

println!(
"DEBUG: target block header {:?}",
target_block.signed_header.header
);
let header = IbcTmHeader {
signed_header: target_block.signed_header,
validator_set: target_block.validators,
Expand Down

0 comments on commit 9feeb2d

Please sign in to comment.