mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-02 18:26:43 +00:00
index fill fixes
This commit is contained in:
parent
18036268e5
commit
66d4e11bf6
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ public class Wallet {
|
|||
purposeNode = optionalPurposeNode.get();
|
||||
}
|
||||
|
||||
purposeNode.fillToIndex(getLookAhead(purposeNode) - 1);
|
||||
purposeNode.fillToIndex(getLookAhead(purposeNode));
|
||||
return purposeNode;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue