Skip to content

Commit

Permalink
Use var
Browse files Browse the repository at this point in the history
  • Loading branch information
earlbread committed Apr 25, 2019
1 parent 1bacda8 commit 7727fa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libplanet/HashDigest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ public bool LessThanTarget(long difficulty)
return true;
}

BigInteger target = new BigInteger(
var target = new BigInteger(
Math.Pow(2, 256) / difficulty);

// Add zero to convert unsigned BigInteger
BigInteger result = new BigInteger(ByteArray.Add(0).ToArray());
var result = new BigInteger(ByteArray.Add(0).ToArray());

return result < target;
}
Expand Down

0 comments on commit 7727fa0

Please sign in to comment.