Merge branch 'fixmining' of github.com:ethcore/parity into beta
This commit is contained in:
commit
df04c95f9a
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user