diff --git a/core/src/main/java/com/google/bitcoin/crypto/DeterministicHierarchy.java b/core/src/main/java/com/google/bitcoin/crypto/DeterministicHierarchy.java index 08db0ec1..b41f1016 100644 --- a/core/src/main/java/com/google/bitcoin/crypto/DeterministicHierarchy.java +++ b/core/src/main/java/com/google/bitcoin/crypto/DeterministicHierarchy.java @@ -95,7 +95,7 @@ public class DeterministicHierarchy implements Serializable { throw new IllegalArgumentException(String.format("No key found for %s path %s.", relativePath ? "relative" : "absolute", HDUtils.formatPath(path))); checkArgument(absolutePath.size() > 0, "Can't derive the master key: nothing to derive from."); - DeterministicKey parent = get(absolutePath.subList(0, absolutePath.size() - 1), relativePath, true); + DeterministicKey parent = get(absolutePath.subList(0, absolutePath.size() - 1), false, true); putKey(HDKeyDerivation.deriveChildKey(parent, absolutePath.get(absolutePath.size() - 1))); } return keys.get(absolutePath);