Skip to content

Commit

Permalink
walletkey must inherit purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Oct 18, 2018
1 parent 05a776c commit 15dbd16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/wallet/walletkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ class WalletKey extends KeyRing {
this.witness = account.witness;
this.nested = branch === 2;

if (account.purpose === 'y')
this.nested = true;

if (key.privateKey)
return this.fromPrivate(key.privateKey);

Expand Down

0 comments on commit 15dbd16

Please sign in to comment.