Do not call resultHandler in case of a RequiredReorgFromSnapshotException

We trigger a resync from resources if there is a reorg and don't want to
continue to request blocks
This commit is contained in:
chimp1984 2021-11-10 17:36:49 +01:00
parent 450800d101
commit 42500c0370
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3

View file

@ -243,7 +243,7 @@ public class LiteNode extends BsqNode {
doParseBlock(block);
runDelayedBatchProcessing(blocks, resultHandler);
} catch (RequiredReorgFromSnapshotException e) {
resultHandler.run();
log.warn("Interrupt batch processing because if a blockchain reorg. {}", e.toString());
}
});
}