Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/coins/dgb.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var common = {
}

var main = Object.assign({}, {
hashGenesisBlock: '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f',
hashGenesisBlock: '7497ea1b465eb39f1c8f507bc877078fe016d6fcb6dfad3a64c98dcc6e1e8496',
// nDefaultPort
port: 12024,
portRpc: 14022,
Expand Down
7 changes: 7 additions & 0 deletions test/coininfo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ test('+ coininfo()', function (t) {
t.end()
})

t.test('> DGB hashGenesisBlock should not be BTC genesis hash', function (t) {
var dgb = ci('DGB')
t.notEqual(dgb.hashGenesisBlock, '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f', 'DGB should not have BTC genesis hash')
t.equal(dgb.hashGenesisBlock, '7497ea1b465eb39f1c8f507bc877078fe016d6fcb6dfad3a64c98dcc6e1e8496', 'DGB should have correct genesis hash')
t.end()
})

t.test('toBitcoinJS()', function (t) {
var bitcoin = ci.bitcoin.main
var bjsBitcoin = bitcoin.toBitcoinJS()
Expand Down