Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixes
  • Loading branch information
gavofyork committed Jul 13, 2018
commit dcdb28794b9a05e70c69159242ad04bfb87dc8c2
5 changes: 3 additions & 2 deletions substrate/client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub enum BlockStatus {
}

/// Block data origin.
#[derive(Debug, PartialEq, Eq, Clone)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum BlockOrigin {
/// Genesis block built into the client.
Genesis,
Expand Down Expand Up @@ -297,11 +297,12 @@ impl<B, E, Block> Client<B, E, Block> where
}
let hash = header.hash();
let _import_lock = self.import_lock.lock();
let height: u64 = header.number().as_();
*self.importing_block.write() = Some(hash);
let result = self.execute_and_import_block(origin, hash, header, justification, body);
*self.importing_block.write() = None;
telemetry!("block.import";
"height" => { let n: u64 = header.number().as_(); n },
"height" => height,
"best" => ?hash,
"origin" => ?origin
);
Expand Down