From 86fbd64598a21523c1d02a46c8c9eeeccdb3d8a2 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 14 May 2016 11:31:07 -0700 Subject: [PATCH] add network to new wallets. --- lib/bcoin/walletdb.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bcoin/walletdb.js b/lib/bcoin/walletdb.js index 980d59cc..874dce51 100644 --- a/lib/bcoin/walletdb.js +++ b/lib/bcoin/walletdb.js @@ -621,6 +621,7 @@ WalletDB.prototype.create = function create(id, options, callback) { options.witness = options.witness !== false; options.provider = new Provider(self); + options.network = self.network; wallet = new bcoin.wallet(options); self.saveJSON(wallet.id, wallet.toJSON(), function(err) {