mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
Add parseBlockchainComplete check
Add parseBlockchainComplete check for onParseBlockChainComplete before calling onParseBlockChainComplete to avoid duplicated calls of onParseBlockChainComplete. Happened if there was only one seed node.
This commit is contained in:
parent
fcd7997582
commit
d09e770751
@ -185,7 +185,9 @@ public class FullNode extends BsqNode {
|
||||
} else {
|
||||
log.info("parseBlocksIfNewBlockAvailable did not result in a new block, so we complete.");
|
||||
log.info("parse {} blocks took {} seconds", blocksToParseInBatch, (System.currentTimeMillis() - parseInBatchStartTime) / 1000d);
|
||||
onParseBlockChainComplete();
|
||||
if (!parseBlockchainComplete) {
|
||||
onParseBlockChainComplete();
|
||||
}
|
||||
}
|
||||
},
|
||||
this::handleError);
|
||||
|
Loading…
Reference in New Issue
Block a user