Matias Alejo Garcia
7 years ago
No known key found for this signature in database
GPG Key ID: 2470DB551277AB3
2 changed files with
3 additions and
0 deletions
-
lib/model/wallet.js
-
lib/server.js
|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
var _ = require('lodash'); |
|
|
|
var util = require('util'); |
|
|
|
var log = require('npmlog'); |
|
|
|
var $ = require('preconditions').singleton(); |
|
|
|
var Uuid = require('uuid'); |
|
|
|
|
|
|
@ -156,6 +157,7 @@ Wallet.prototype.createAddress = function(isChange) { |
|
|
|
var self = this; |
|
|
|
|
|
|
|
var path = this.addressManager.getNewAddressPath(isChange); |
|
|
|
log.verbose('Deriving addr:' + path); |
|
|
|
var address = Address.derive(self.id, this.addressType, this.publicKeyRing, path, this.m, this.coin, this.network, isChange); |
|
|
|
return address; |
|
|
|
}; |
|
|
|
|
|
@ -3210,6 +3210,7 @@ WalletService.prototype.scan = function(opts, cb) { |
|
|
|
var gap = Defaults.SCAN_ADDRESS_GAP; |
|
|
|
|
|
|
|
async.whilst(function() { |
|
|
|
log.debug('Scanning addr gap:'+ inactiveCounter); |
|
|
|
return inactiveCounter < gap; |
|
|
|
}, function(next) { |
|
|
|
var address = derivator.derive(); |
|
|
|