Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
use tracing::info
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Jun 11, 2024
1 parent d576c90 commit 78f6c94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions modules/sov-consensus-state-tracker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ serde = { workspace = true }
serde_json = { workspace = true, optional = true }
thiserror = { workspace = true }
uint = "0.9"
tracing = { workspace = true }

# ibc dependencies
ibc-app-transfer = { workspace = true, features = [ "borsh", "schema" ] }
Expand Down
6 changes: 3 additions & 3 deletions modules/sov-consensus-state-tracker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use sov_modules_api::kernel_state::BootstrapWorkingSet;
use sov_modules_api::runtime::capabilities::{BatchSelector, Kernel, KernelSlotHooks};
use sov_modules_api::{DaSpec, Gas, KernelModule, KernelWorkingSet, Spec, StateCheckpoint};
use sov_state::Storage;
use tracing::info;

/// Implement HasConsensusState for all DaSpecs that you wish to support, and
/// extract the consensus state from the header.
Expand Down Expand Up @@ -137,9 +138,6 @@ where
.host_height_map
.set(&height, kernel_working_set.inner);

println!("visible_slot_number: {visible_slot_number}");
println!("pre_state_root: {pre_state_root:?}");

let consensus_state = Da::consensus_state(slot_header, pre_state_root.clone().into());

self.ibc.host_timestamp_map.set(
Expand All @@ -152,6 +150,8 @@ where
&consensus_state,
kernel_working_set.inner,
);

info!("Host ConsensusState is stored at {height}: {consensus_state:?}");
}

gas_price
Expand Down

0 comments on commit 78f6c94

Please sign in to comment.