3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 10:45:51 +00:00

correctly identify leaf keys

This commit is contained in:
Devrandom 2014-11-08 22:41:15 -08:00 committed by Mike Hearn
parent 523d97b5dd
commit 4713c76a29

View File

@ -1245,7 +1245,7 @@ public class DeterministicKeyChain implements EncryptableKeyChain {
ImmutableList.Builder<DeterministicKey> keys = ImmutableList.builder();
for (ECKey key : getKeys(true)) {
DeterministicKey dKey = (DeterministicKey) key;
if (dKey.getPath().size() > 2) {
if (dKey.getPath().size() == getAccountPath().size() + 2) {
keys.add(dKey);
}
}