From 71cc2f071cd8a3ed922f87ac5ab7d7b00a439254 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 4 Jan 2019 01:58:44 -0800 Subject: [PATCH] miner: fix block proofs for submitwork. --- lib/mining/template.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mining/template.js b/lib/mining/template.js index 2072d182..4f0b838a 100644 --- a/lib/mining/template.js +++ b/lib/mining/template.js @@ -912,14 +912,14 @@ class BlockProof { } verify(target, network) { - if (this.hash().compare(target) > 0) + if (this.powHash().compare(target) > 0) return false; return true; } getDifficulty() { - return common.getDifficulty(this.hash()); + return common.getDifficulty(this.powHash()); } }