Browse Source

rm network auto-detection

hk-custom-address
Daniel Cousens 9 years ago
parent
commit
649c4d79f9
  1. 22
      test/networks.js

22
test/networks.js

@ -1,22 +0,0 @@
/* global describe, it */
var assert = require('assert')
var networks = require('../src/networks')
var HDNode = require('../src/hdnode')
var fixtures = require('./fixtures/network')
describe('networks', function () {
fixtures.forEach(function (f) {
var network = networks[f.network]
Object.keys(f.bip32).forEach(function (name) {
var extb58 = f.bip32[name]
it(extb58 + ' auto-detects ' + f.network, function () {
assert.strictEqual(HDNode.fromBase58(extb58).keyPair.network, network)
})
})
})
})
Loading…
Cancel
Save