Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gilescope committed Jul 19, 2021
1 parent 1f662cb commit 3fad2bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions client/network/test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,10 @@ impl<D, B> Peer<D, B> where
announce_block: bool,
) -> H256
where
F: FnMut(BlockBuilder<Block, PeersFullClient,
substrate_test_runtime_client::Backend>) -> Block
F: FnMut(
BlockBuilder<Block, PeersFullClient,
substrate_test_runtime_client::Backend>
) -> Block
{
let full_client = self.client.as_full()
.expect("blocks could only be generated by full clients");
Expand Down Expand Up @@ -672,9 +674,7 @@ pub struct FullPeerConfig {
pub sync_mode: SyncMode,
}

pub trait TestNetFactory: Sized
where
<Self::BlockImport as BlockImport<Block>>::Transaction: Send
pub trait TestNetFactory: Sized where <Self::BlockImport as BlockImport<Block>>::Transaction: Send
{
type Verifier: 'static + Verifier<Block>;
type BlockImport: BlockImport<Block, Error = ConsensusError> + Clone + Send + Sync + 'static;
Expand Down
3 changes: 1 addition & 2 deletions client/service/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1011,8 +1011,7 @@ impl<B, E, Block, RA> Client<B, E, Block, RA> where
return Ok(());
}

let route_from_finalized = sp_blockchain::tree_route(
self.backend.blockchain(), last_finalized, block)?;
let route_from_finalized = sp_blockchain::tree_route(self.backend.blockchain(), last_finalized, block)?;

if let Some(retracted) = route_from_finalized.retracted().get(0) {
warn!("Safety violation: attempted to revert finalized block {:?} which is not in the \
Expand Down

0 comments on commit 3fad2bb

Please sign in to comment.