HDWallet prod -> mainnet

This commit is contained in:
Wei Lu 2014-02-28 16:57:44 +08:00
parent eaf84c4283
commit 02b3a2b564
4 changed files with 9 additions and 11 deletions

View file

@ -14,7 +14,7 @@ describe('Wallet', function() {
})
it('defaults to Bitcoin mainnet', function() {
assert.equal(wallet.getMasterKey().network, 'prod')
assert.equal(wallet.getMasterKey().network, 'mainnet')
})
it('defaults to private derivationMethod', function() {
@ -39,7 +39,7 @@ describe('Wallet', function() {
describe('networkType', function() {
it('ensures that a mainnet Wallet has mainnet child keys (pub and priv)', function() {
var w = Wallet("foobar", {network: "prod"})
var w = Wallet("foobar", {network: "mainnet"})
assert(w.getMasterKey().priv.version == mainnet)
w.generateAddress()
assert(w.getPrivateKey(0).priv.version == mainnet)