mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
HDW: Simplify an unusual for loop in DKC
This commit is contained in:
parent
53aa33c2e8
commit
00a276f906
@ -357,8 +357,8 @@ public class DeterministicKeyChain implements EncryptableKeyChain {
|
||||
basicKeyChain.importKeys(lookahead);
|
||||
List<DeterministicKey> keys = new ArrayList<DeterministicKey>(numberOfKeys);
|
||||
|
||||
for (int i = 1; i <= numberOfKeys; i++) {
|
||||
keys.add(hierarchy.get(HDUtils.append(parentKey.getPath(), new ChildNumber((index-numberOfKeys+i) - 1, false)), false, false));
|
||||
for (int i = 0; i < numberOfKeys; i++) {
|
||||
keys.add(hierarchy.get(HDUtils.append(parentKey.getPath(), new ChildNumber(index - numberOfKeys + i, false)), false, false));
|
||||
}
|
||||
return keys;
|
||||
} finally {
|
||||
|
Loading…
Reference in New Issue
Block a user