Add info message for mined block.
This commit is contained in:
parent
c8d2237f0a
commit
11f1aeb36e
@ -463,7 +463,10 @@ impl MinerService for Miner {
|
|||||||
}
|
}
|
||||||
Ok(sealed) => {
|
Ok(sealed) => {
|
||||||
// TODO: commit DB from `sealed.drain` and make a VerifiedBlock to skip running the transactions twice.
|
// 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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user