diff1 is a normal JS number now rather than a bignum

This commit is contained in:
Matt 2014-04-20 12:17:44 -06:00
parent cf74872863
commit a4a2278443
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ module.exports = function(logger){
// some shitcoins dont provide target, only bits, so we need to deal with both
var target = response.target ? bignum(response.target, 16) : util.bignumFromBitsHex(response.bits);
coinStatus.difficulty = parseFloat((diff1.toNumber() / target.toNumber()).toFixed(9));
coinStatus.difficulty = parseFloat((diff1 / target.toNumber()).toFixed(9));
logger.debug(logSystem, symbol, 'difficulty is ' + coinStatus.difficulty);
coinStatus.reward = new Number(response.coinbasevalue / 100000000);