index fill fixes

This commit is contained in:
Craig Raw 2020-06-25 11:27:20 +02:00
parent 18036268e5
commit 66d4e11bf6
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ public class Wallet {
purposeNode = optionalPurposeNode.get();
}
purposeNode.fillToIndex(getLookAhead(purposeNode) - 1);
purposeNode.fillToIndex(getLookAhead(purposeNode));
return purposeNode;
}

View file

@ -40,7 +40,7 @@ public class WalletNode implements Comparable<WalletNode> {
return derivationPath;
}
private void parseDerivation() {
public void parseDerivation() {
this.derivation = KeyDerivation.parsePath(derivationPath);
this.keyPurpose = KeyPurpose.fromChildNumber(derivation.get(0));
this.index = derivation.get(derivation.size() - 1).num();