mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-12 02:08:11 +01:00
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:
parent
450800d101
commit
42500c0370
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ public class LiteNode extends BsqNode {
|
||||||
doParseBlock(block);
|
doParseBlock(block);
|
||||||
runDelayedBatchProcessing(blocks, resultHandler);
|
runDelayedBatchProcessing(blocks, resultHandler);
|
||||||
} catch (RequiredReorgFromSnapshotException e) {
|
} catch (RequiredReorgFromSnapshotException e) {
|
||||||
resultHandler.run();
|
log.warn("Interrupt batch processing because if a blockchain reorg. {}", e.toString());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue