Hashrate now reported correctly.

This commit is contained in:
Gav Wood
2016-03-01 01:52:22 +01:00
parent 2266d74c2a
commit 5ccb172e73
2 changed files with 11 additions and 9 deletions

View File

@@ -417,7 +417,7 @@ impl Client {
/// New chain head event.
pub fn new_chain_head(&self) {
let h = self.chain.read().unwrap().best_block_hash();
info!("New best block: #{}: {}", self.chain.read().unwrap().best_block_number(), h);
debug!("New best block: #{}: {}", self.chain.read().unwrap().best_block_number(), h);
let b = OpenBlock::new(
self.engine.deref().deref(),
self.state_db.lock().unwrap().clone(),
@@ -427,7 +427,7 @@ impl Client {
b"Parity".to_vec()
);
let b = b.close();
info!("Sealed: hash={}, diff={}, number={}", b.hash(), b.block().header().difficulty(), b.block().header().number());
debug!("Sealing: hash={}, diff={}, number={}", b.hash(), b.block().header().difficulty(), b.block().header().number());
*self.sealing_block.lock().unwrap() = Some(b);
}