Merge pull request #755 from yemel/feature/importing-feedback

Add feedback while importing wallet
This commit is contained in:
Gustavo Maximiliano Cortez 2014-06-26 15:51:28 -03:00
commit dff3c9c479
6 changed files with 41 additions and 4 deletions

View file

@ -759,6 +759,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) {