From 559df0b3f82029daaf5bc5ab98547f5a0160325d Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Thu, 28 Feb 2013 19:27:13 +0100 Subject: [PATCH] Trivial cleanup --- core/src/main/java/com/google/bitcoin/core/Block.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/bitcoin/core/Block.java b/core/src/main/java/com/google/bitcoin/core/Block.java index 24374af26..e942203aa 100644 --- a/core/src/main/java/com/google/bitcoin/core/Block.java +++ b/core/src/main/java/com/google/bitcoin/core/Block.java @@ -578,7 +578,7 @@ public class Block extends Message { public BigInteger getDifficultyTargetAsInteger() throws VerificationException { maybeParseHeader(); BigInteger target = Utils.decodeCompactBits(difficultyTarget); - if (target.compareTo(BigInteger.valueOf(0)) <= 0 || target.compareTo(params.proofOfWorkLimit) > 0) + if (target.compareTo(BigInteger.ZERO) <= 0 || target.compareTo(params.proofOfWorkLimit) > 0) throw new VerificationException("Difficulty target is bad: " + target.toString()); return target; }