Add wallet addresses index discovery on importing backup
This commit is contained in:
parent
107414ec7e
commit
29920abdb3
7 changed files with 167 additions and 3 deletions
|
|
@ -71,6 +71,11 @@ WalletFactory.prototype.fromEncryptedObj = function(base64, password) {
|
|||
var walletObj = this.storage.import(base64);
|
||||
if (!walletObj) return false;
|
||||
var w = this.fromObj(walletObj);
|
||||
var self = this;
|
||||
w.updateIndexes(function(err) {
|
||||
if (err) throw err;
|
||||
self.log('Indexes updated');
|
||||
});
|
||||
return w;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue