Fix incorrect reporting of block difficulty.

The nBits value for mainnet genesis was being used instead of testnet.
This commit is contained in:
Simon 2018-10-18 14:26:31 -07:00
parent 4c6a7df8be
commit c3bbbc3f08
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ var Hash = require('../crypto/hash');
var JSUtil = require('../util/js');
var $ = require('../util/preconditions');
var GENESIS_BITS = 0x1f07ffff;
// Mainnet 0x1f07ffff, Testnet 0x2007ffff
var GENESIS_BITS = 0x2007ffff;
/**
* Instantiate a BlockHeader from a Buffer, JSON object, or Object with