mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 22:46:56 +01:00
DeterministicKeyChain: remove unused parameter baseKey
from initializeHierarchyUnencrypted()
This commit is contained in:
parent
6e8435e129
commit
6298651929
1 changed files with 3 additions and 3 deletions
|
@ -362,7 +362,7 @@ public class DeterministicKeyChain implements EncryptableKeyChain {
|
|||
hierarchy = new DeterministicHierarchy(key);
|
||||
this.accountPath = key.getPath();
|
||||
this.outputScriptType = outputScriptType;
|
||||
initializeHierarchyUnencrypted(key);
|
||||
initializeHierarchyUnencrypted();
|
||||
this.isFollowing = isFollowing;
|
||||
}
|
||||
|
||||
|
@ -393,7 +393,7 @@ public class DeterministicKeyChain implements EncryptableKeyChain {
|
|||
for (HDPath path : getAccountPath().ancestors(true)) {
|
||||
basicKeyChain.importKey(hierarchy.get(path, false, true));
|
||||
}
|
||||
initializeHierarchyUnencrypted(rootKey);
|
||||
initializeHierarchyUnencrypted();
|
||||
}
|
||||
// Else...
|
||||
// We can't initialize ourselves with just an encrypted seed, so we expected deserialization code to do the
|
||||
|
@ -463,7 +463,7 @@ public class DeterministicKeyChain implements EncryptableKeyChain {
|
|||
|
||||
// Derives the account path keys and inserts them into the basic key chain. This is important to preserve their
|
||||
// order for serialization, amongst other things.
|
||||
private void initializeHierarchyUnencrypted(DeterministicKey baseKey) {
|
||||
private void initializeHierarchyUnencrypted() {
|
||||
externalParentKey = hierarchy.deriveChild(getAccountPath(), false, false, ChildNumber.ZERO);
|
||||
internalParentKey = hierarchy.deriveChild(getAccountPath(), false, false, ChildNumber.ONE);
|
||||
basicKeyChain.importKey(externalParentKey);
|
||||
|
|
Loading…
Add table
Reference in a new issue