Fix for Bisq blocks data watchers stopps working randomly. Restaring watcher when block height has diverged.

This commit is contained in:
softsimon
2020-09-27 17:21:18 +07:00
parent f4a78a0e78
commit 3450de774f
3 changed files with 14 additions and 4 deletions

View File

@@ -84,6 +84,7 @@ class Server {
if (config.BISQ_ENABLED) {
bisq.startBisqService();
bisq.setPriceCallbackFunction((price) => websocketHandler.setExtraInitProperties('bsq-price', price));
blocks.setNewBlockCallback(bisq.handleNewBitcoinBlock.bind(bisq));
}
if (config.BISQ_MARKET_ENABLED) {