Merge pull request #416 from bitpay/revert-413-hack/disable-addr-limit
Revert "Temporarily disable max address gap limit"
This commit is contained in:
commit
35228ad1e0
|
@ -730,7 +730,6 @@ WalletService.prototype.createAddress = function(opts, cb) {
|
|||
var self = this;
|
||||
|
||||
opts = opts || {};
|
||||
opts.ignoreMaxGap = true;
|
||||
|
||||
self._runLocked(cb, function(cb) {
|
||||
self.getWallet({}, function(err, wallet) {
|
||||
|
|
|
@ -960,7 +960,7 @@ describe('Wallet service', function() {
|
|||
});
|
||||
});
|
||||
|
||||
it.skip('should fail to create more consecutive addresses with no activity than allowed', function(done) {
|
||||
it('should fail to create more consecutive addresses with no activity than allowed', function(done) {
|
||||
var MAX_MAIN_ADDRESS_GAP_old = Defaults.MAX_MAIN_ADDRESS_GAP;
|
||||
Defaults.MAX_MAIN_ADDRESS_GAP = 2;
|
||||
helpers.stubAddressActivity([]);
|
||||
|
@ -996,7 +996,7 @@ describe('Wallet service', function() {
|
|||
});
|
||||
});
|
||||
|
||||
it.skip('should cache address activity', function(done) {
|
||||
it('should cache address activity', function(done) {
|
||||
var MAX_MAIN_ADDRESS_GAP_old = Defaults.MAX_MAIN_ADDRESS_GAP;
|
||||
Defaults.MAX_MAIN_ADDRESS_GAP = 2;
|
||||
helpers.stubAddressActivity([]);
|
||||
|
@ -4246,7 +4246,7 @@ describe('Wallet service', function() {
|
|||
});
|
||||
});
|
||||
|
||||
it.skip('should not go beyond max gap', function(done) {
|
||||
it('should not go beyond max gap', function(done) {
|
||||
helpers.stubAddressActivity(
|
||||
['1L3z9LPd861FWQhf3vDn89Fnc9dkdBo2CG', // m/0/0
|
||||
'1GdXraZ1gtoVAvBh49D4hK9xLm6SKgesoE', // m/0/2
|
||||
|
|
Loading…
Reference in New Issue