From 1d780f456ac7d7bf09af7df366478289788d4d72 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 30 Jun 2016 23:14:54 +0200 Subject: [PATCH] Fix is_new. --- ethcore/src/miner/miner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethcore/src/miner/miner.rs b/ethcore/src/miner/miner.rs index 35c9998c7..d3e32c797 100644 --- a/ethcore/src/miner/miner.rs +++ b/ethcore/src/miner/miner.rs @@ -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); (Some((pow_hash, difficulty, number)), is_new) } else {