add network to new wallets.

This commit is contained in:
Christopher Jeffrey 2016-05-14 11:31:07 -07:00
parent 3cea8323b0
commit 86fbd64598
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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) {