Add info message for mined block.

This commit is contained in:
Gav Wood 2016-05-23 18:46:08 +02:00
parent c8d2237f0a
commit 11f1aeb36e
1 changed files with 4 additions and 1 deletions

View File

@ -463,7 +463,10 @@ impl MinerService for Miner {
}
Ok(sealed) => {
// TODO: commit DB from `sealed.drain` and make a VerifiedBlock to skip running the transactions twice.
try!(chain.import_block(sealed.rlp_bytes()));
let b = sealed.rlp_bytes();
let h = b.sha3();
try!(chain.import_block(b));
info!("Block {} submitted and imported.", h);
Ok(())
}
}