miner: fix block proofs for submitwork.

This commit is contained in:
Christopher Jeffrey 2019-01-04 01:58:44 -08:00
parent 9b07b8008e
commit 71cc2f071c
No known key found for this signature in database
GPG key ID: 8962AB9DE6666BBD

View file

@ -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());
}
}