Fixes importing profile with a wallet that is not ready
This commit is contained in:
parent
b49d6b9c01
commit
b9fd442ffd
2 changed files with 4 additions and 3 deletions
|
|
@ -2495,8 +2495,9 @@ Wallet.prototype.createTxSync = function(toAddress, amountSatStr, comment, utxos
|
|||
*/
|
||||
Wallet.prototype.updateIndexes = function(callback) {
|
||||
var self = this;
|
||||
if (!self.isReady())
|
||||
return callback();
|
||||
log.debug('Wallet:' + this.id + ' Updating indexes...');
|
||||
|
||||
var tasks = this.publicKeyRing.indexes.map(function(index) {
|
||||
return function(callback) {
|
||||
self.updateIndex(index, callback);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue