From 4a6206c5146ac141df98f0a92a45bbd6edccafda Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 29 Jun 2016 16:45:17 +0200 Subject: [PATCH] Log for when we mine a block with lots of info. Fixes #1468 --- ethcore/src/miner/miner.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ethcore/src/miner/miner.rs b/ethcore/src/miner/miner.rs index aea0fd154..f1bba6fdf 100644 --- a/ethcore/src/miner/miner.rs +++ b/ethcore/src/miner/miner.rs @@ -617,7 +617,7 @@ impl MinerService for Miner { Err(Error::PowInvalid) } Ok(sealed) => { - info!(target: "miner", "New block mined, hash: {}", sealed.header().hash().hex()); + info!(target: "miner", "New solution received for #{}: {}", sealed.header().number(), sealed.header().hash()); Ok(sealed) } } @@ -626,7 +626,10 @@ impl MinerService for Miner { Err(Error::PowHashInvalid) }; result.and_then(|sealed| { + let n = sealed.header().number(); + let h = sealed.header().hash(); try!(chain.import_sealed_block(sealed)); + info!("Mined block imported OK. #{}: {}", n, h.hex()); Ok(()) }) }