Skip to content

Commit

Permalink
Merge pull request #413 from qimiaoguo/patch-1
Browse files Browse the repository at this point in the history
wallet: fix change lookahed address
  • Loading branch information
chjj authored Mar 31, 2020
2 parents 14e0b83 + 143a283 commit 75b8d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wallet/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class Account extends bio.Struct {
break;
case 1:
key = this.deriveChange(this.changeDepth);
lookahead = this.deriveReceive(this.changeDepth + this.lookahead);
lookahead = this.deriveChange(this.changeDepth + this.lookahead);
await this.saveKey(b, lookahead);
this.changeDepth += 1;
this.change = key;
Expand Down

0 comments on commit 75b8d06

Please sign in to comment.