Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nanocryk committed Sep 27, 2024
1 parent 8bf0d04 commit c6279b0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 34 deletions.
64 changes: 32 additions & 32 deletions solo-chains/node/tanssi-relay-service/src/dev_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,39 +30,39 @@
//! 10. If amount of time passed between two block is less than slot duration, we emulate passing of time babe block import and runtime
//! by incrementing timestamp by slot duration.

use async_io::Timer;
use babe::{BabeBlockImport, BabeLink};
use codec::{Decode, Encode};
use consensus_common::SelectChain;
use dancelight_runtime::RuntimeApi;
use futures::Stream;
use futures::StreamExt;
use jsonrpsee::RpcModule;
use node_common::service::Sealing;
use polkadot_core_primitives::{AccountId, Balance, Block, Hash, Nonce};
use polkadot_node_core_parachains_inherent::Error as InherentError;
use polkadot_overseer::Handle;
use polkadot_primitives::InherentData as ParachainsInherentData;
use polkadot_rpc::{DenyUnsafe, RpcExtension};
use polkadot_service::{
BlockT, Error, IdentifyVariant, NewFullParams, OverseerGen, SelectRelayChain,
use {
async_io::Timer,
babe::{BabeBlockImport, BabeLink},
codec::{Decode, Encode},
consensus_common::SelectChain,
dancelight_runtime::RuntimeApi,
futures::{Stream, StreamExt},
jsonrpsee::RpcModule,
node_common::service::Sealing,
polkadot_core_primitives::{AccountId, Balance, Block, Hash, Nonce},
polkadot_node_core_parachains_inherent::Error as InherentError,
polkadot_overseer::Handle,
polkadot_primitives::InherentData as ParachainsInherentData,
polkadot_rpc::{DenyUnsafe, RpcExtension},
polkadot_service::{
BlockT, Error, IdentifyVariant, NewFullParams, OverseerGen, SelectRelayChain,
},
sc_client_api::{AuxStore, Backend},
sc_consensus_manual_seal::{
consensus::babe::BabeConsensusDataProvider,
rpc::{ManualSeal, ManualSealApiServer},
run_manual_seal, EngineCommand, ManualSealParams,
},
sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY},
sc_transaction_pool_api::{OffchainTransactionPoolFactory, TransactionPool},
service::{Configuration, KeystoreContainer, RpcHandlers, TaskManager},
sp_api::ProvideRuntimeApi,
sp_block_builder::BlockBuilder,
sp_blockchain::{HeaderBackend, HeaderMetadata},
sp_consensus_babe::SlotDuration,
std::{cmp::max, ops::Add, sync::Arc, time::Duration},
telemetry::{Telemetry, TelemetryWorker, TelemetryWorkerHandle},
};
use sc_client_api::{AuxStore, Backend};
use sc_consensus_manual_seal::consensus::babe::BabeConsensusDataProvider;
use sc_consensus_manual_seal::rpc::{ManualSeal, ManualSealApiServer};
use sc_consensus_manual_seal::{run_manual_seal, EngineCommand, ManualSealParams};
use sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY};
use sc_transaction_pool_api::{OffchainTransactionPoolFactory, TransactionPool};
use service::{Configuration, KeystoreContainer, RpcHandlers, TaskManager};
use sp_api::ProvideRuntimeApi;
use sp_block_builder::BlockBuilder;
use sp_blockchain::{HeaderBackend, HeaderMetadata};
use sp_consensus_babe::SlotDuration;
use std::cmp::max;
use std::ops::Add;
use std::sync::Arc;
use std::time::Duration;
use telemetry::{Telemetry, TelemetryWorker, TelemetryWorkerHandle};

pub type FullBackend = service::TFullBackend<Block>;

Expand Down
3 changes: 1 addition & 2 deletions solo-chains/runtime/dancelight/src/genesis_config_presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ use {
},
sp_keystore::{Keystore, KeystorePtr},
sp_runtime::traits::IdentifyAccount,
sp_std::vec,
sp_std::vec::Vec,
sp_std::{vec, vec::Vec},
tp_traits::ParaId,
};

Expand Down

0 comments on commit c6279b0

Please sign in to comment.