public BigInteger GetDifficultyTargetAsInteger() { var target = Utils.DecodeCompactBits(_difficultyTarget); if (target.CompareTo(BigInteger.Zero) <= 0 || target.CompareTo(Params.ProofOfWorkLimit) > 0) throw new VerificationException("Difficulty target is bad: " + target); return target; }