Wallet: Fix handling of wallet without deterministic chains in checkForFilterExhaustion().

This commit is contained in:
Andreas Schildbach
2019-03-19 17:54:45 +01:00
parent f81eb9bc24
commit c3b6e0d7b9

View File

@@ -4880,6 +4880,8 @@ public class Wallet extends BaseTaggableObject
public boolean checkForFilterExhaustion(FilteredBlock block) {
keyChainGroupLock.lock();
try {
if (!keyChainGroup.isSupportsDeterministicChains())
return false;
int epoch = keyChainGroup.getCombinedKeyLookaheadEpochs();
for (Transaction tx : block.getAssociatedTransactions().values()) {
markKeysAsUsed(tx);