Add feedback while importing wallet

This commit is contained in:
Yemel Jardi 2014-06-25 15:49:02 -03:00
commit 96cbf8ad7b
5 changed files with 18 additions and 3 deletions

View file

@ -755,6 +755,7 @@ Wallet.prototype.updateIndexes = function(callback) {
if (changeIndex != -1)
self.publicKeyRing.indexes.changeIndex = changeIndex + 1;
self.emit('updatingIndexes');
start = self.publicKeyRing.indexes.receiveIndex;
self.indexDiscovery(start, false, 20, function(err, receiveIndex) {
if (err) return callback(err);

View file

@ -84,6 +84,7 @@ WalletFactory.prototype.import = function(base64, password, cb) {
self.log('Indexes updated');
cb(null, w);
});
return w;
}
WalletFactory.prototype.read = function(walletId) {