Merge branch 'work-notify' of github.com:ethcore/parity into beta

This commit is contained in:
arkpar 2016-06-30 18:21:12 +02:00
commit 3921e10af0
1 changed files with 3 additions and 0 deletions

View File

@ -263,6 +263,9 @@ impl Miner {
let number = block.block().fields().header.number();
let difficulty = *block.block().fields().header.difficulty();
sealing_work.push(block);
if self.work_poster.is_some() {
sealing_work.use_last_ref();
}
Some((pow_hash, difficulty, number))
} else {
None