From 54a276439de4ba0e41c253ac9d277b3ba491b730 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 30 Jan 2021 23:02:20 +0900 Subject: [PATCH] Increase Bisq block height divergence warning to 10 blocks for Tor issues --- backend/src/api/bisq/bisq.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/bisq/bisq.ts b/backend/src/api/bisq/bisq.ts index 83e6c318d..cedb97faa 100644 --- a/backend/src/api/bisq/bisq.ts +++ b/backend/src/api/bisq/bisq.ts @@ -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();