Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zbuc committed Aug 21, 2024
1 parent 52e53a9 commit dd8c8b0
Show file tree
Hide file tree
Showing 12 changed files with 158 additions and 897 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.

17 changes: 0 additions & 17 deletions crates/core/app/src/server/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,25 +188,8 @@ impl Consensus {
// included in the span modeling the abci request handling.
tracing::info!(time = ?begin_block.header.time, "beginning block");

let storage_revision_height = self.storage.latest_snapshot().version();
let storage_root = self.storage.latest_snapshot().root_hash().await?;
println!(
"BEFORE begin_block {} storage height is {} and storage root is {}",
begin_block.header.height,
storage_revision_height,
hex::encode(storage_root.0)
);
let events = self.app.begin_block(&begin_block).await;

let storage_revision_height = self.storage.latest_snapshot().version();
let storage_root = self.storage.latest_snapshot().root_hash().await?;
println!(
"AFTER begin_block {} storage height is {} and storage root is {}",
begin_block.header.height,
storage_revision_height,
hex::encode(storage_root.0)
);

Ok(response::BeginBlock { events })
}

Expand Down
1 change: 0 additions & 1 deletion crates/core/app/tests/common/ibc_tests/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ impl TestNodeWithIBC {
let node = {
let app_state =
AppState::Content(genesis::Content::default().with_chain_id(chain_id.clone()));
// TODO: genesis contents need to contain validator information in the app state
let consensus = Consensus::new(storage.as_ref().clone());
TestNode::builder()
.with_keys(vec![keys])
Expand Down
Loading

0 comments on commit dd8c8b0

Please sign in to comment.