Increase Bisq block height divergence warning to 10 blocks for Tor issues

This commit is contained in:
wiz 2021-01-30 23:02:20 +09:00
parent 42ad068dd2
commit 54a276439d
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -43,7 +43,7 @@ class Bisq {
}
handleNewBitcoinBlock(block: BlockExtended): void {
if (block.height - 2 > this.latestBlockHeight && this.latestBlockHeight !== 0) {
if (block.height - 10 > this.latestBlockHeight && this.latestBlockHeight !== 0) {
logger.warn(`Bitcoin block height (#${block.height}) has diverged from the latest Bisq block height (#${this.latestBlockHeight}). Restarting watchers...`);
this.startTopDirectoryWatcher();
this.startSubDirectoryWatcher();