Log for when we mine a block with lots of info.

Fixes #1468
This commit is contained in:
Gav Wood 2016-06-29 16:45:17 +02:00 committed by arkpar
parent 60270083e5
commit 4a6206c514

View File

@ -617,7 +617,7 @@ impl MinerService for Miner {
Err(Error::PowInvalid) Err(Error::PowInvalid)
} }
Ok(sealed) => { 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) Ok(sealed)
} }
} }
@ -626,7 +626,10 @@ impl MinerService for Miner {
Err(Error::PowHashInvalid) Err(Error::PowHashInvalid)
}; };
result.and_then(|sealed| { result.and_then(|sealed| {
let n = sealed.header().number();
let h = sealed.header().hash();
try!(chain.import_sealed_block(sealed)); try!(chain.import_sealed_block(sealed));
info!("Mined block imported OK. #{}: {}", n, h.hex());
Ok(()) Ok(())
}) })
} }