Skip to content

Commit

Permalink
wallet: bump lookahead to 200
Browse files Browse the repository at this point in the history
account.lookahead is saved to the database as a uint8 so values
larger than 255 will overflow anyway. BIP44 only recommends a gap
limit of 20 anyway so this should be plenty.
  • Loading branch information
pinheadmz committed Sep 7, 2020
1 parent dd63d65 commit 62786ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wallet/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Account extends bio.Struct {
this.n = 1;
this.receiveDepth = 0;
this.changeDepth = 0;
this.lookahead = 10;
this.lookahead = 200;
this.accountKey = null;
this.keys = [];

Expand Down Expand Up @@ -833,7 +833,7 @@ Account.typesByVal = [
* @const {Number}
*/

Account.MAX_LOOKAHEAD = 40;
Account.MAX_LOOKAHEAD = 200;

/*
* Helpers
Expand Down

0 comments on commit 62786ed

Please sign in to comment.