add network to new wallets.
This commit is contained in:
parent
3cea8323b0
commit
86fbd64598
@ -621,6 +621,7 @@ WalletDB.prototype.create = function create(id, options, callback) {
|
|||||||
options.witness = options.witness !== false;
|
options.witness = options.witness !== false;
|
||||||
|
|
||||||
options.provider = new Provider(self);
|
options.provider = new Provider(self);
|
||||||
|
options.network = self.network;
|
||||||
wallet = new bcoin.wallet(options);
|
wallet = new bcoin.wallet(options);
|
||||||
|
|
||||||
self.saveJSON(wallet.id, wallet.toJSON(), function(err) {
|
self.saveJSON(wallet.id, wallet.toJSON(), function(err) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user