Merge branch 'fixmining' of github.com:ethcore/parity into beta

This commit is contained in:
arkpar 2016-06-30 23:20:28 +02:00
commit df04c95f9a
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ impl Miner {
let pow_hash = block.block().fields().header.hash();
let number = block.block().fields().header.number();
let difficulty = *block.block().fields().header.difficulty();
let is_new = original_work_hash.map_or(false, |h| block.block().fields().header.hash() == h);
let is_new = original_work_hash.map_or(true, |h| block.block().fields().header.hash() != h);
sealing_work.push(block);
// If push notifications are enabled we assume all work items are used.
if self.work_poster.is_some() {