From 4b8292a10363a5cd1a498aa20212844e949e6483 Mon Sep 17 00:00:00 2001 From: mrfelton Date: Fri, 17 Feb 2023 09:29:51 +0100 Subject: [PATCH] fix: sync start detection --- services/neutrino/neutrino.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/neutrino/neutrino.js b/services/neutrino/neutrino.js index 097b1a4211c..ad49644e657 100644 --- a/services/neutrino/neutrino.js +++ b/services/neutrino/neutrino.js @@ -515,9 +515,8 @@ class Neutrino extends EventEmitter { line.match(/Syncing to block height (\d+)/) || line.match(/Starting cfilters sync at block_height=(\d+)/) || line.match(/Starting cfheaders sync from \(block_height=(\d+)/) || - line.includes('Waiting for chain backend to finish sync') || - line.includes('Waiting for block headers to sync, then will start cfheaders sync') || - line.includes('Starting rescan from known block') + line.match(/Starting cfheaders sync from \(block_height=(\d+)/) || + line.match(/Started rescan from block .* \(height (\d+)\)/) if (match) { this.setState(NEUTRINO_CHAIN_SYNC_IN_PROGRESS)