Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
liamaharon committed May 13, 2024
1 parent 039cdaf commit bcdd083
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
24 changes: 7 additions & 17 deletions core/src/commands/fast_forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,19 @@

use std::{fmt::Debug, str::FromStr};

use parity_scale_codec::{Encode};
use parity_scale_codec::Encode;
use sc_cli::Result;
use sc_executor::{sp_wasm_interface::HostFunctions};
use sc_executor::sp_wasm_interface::HostFunctions;
use serde::de::DeserializeOwned;
use sp_core::H256;

use sp_runtime::{
traits::{NumberFor},
};

use sp_runtime::traits::NumberFor;

use crate::{
common::{
empty_block::{
inherents::{
providers::{ProviderVariant},
},
production::execute_next_block,
},
state::{
build_executor, state_machine_call_with_proof, RuntimeChecks, State,
},
}, BlockT, SharedParams,
empty_block::{inherents::providers::ProviderVariant, production::execute_next_block},
state::{build_executor, state_machine_call_with_proof, RuntimeChecks, State},
},
BlockT, SharedParams,
};

/// Configuration for [`run`].
Expand Down
5 changes: 4 additions & 1 deletion core/src/common/empty_block/production.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ where
)
.await?;

log::info!("Produced a new block ({})", array_bytes::bytes2hex("0x", next_block.header().hash()));
log::info!(
"Produced a new block ({})",
array_bytes::bytes2hex("0x", next_block.header().hash())
);

// And now we restore previous state.
ext.backend = backend;
Expand Down

0 comments on commit bcdd083

Please sign in to comment.