From 2706bdbcf538effe5747aa52d4368d071c2d5b9e Mon Sep 17 00:00:00 2001 From: yanguoyu <841185308@qq.com> Date: Fri, 15 Mar 2024 17:13:15 +0800 Subject: [PATCH] fix: The first sync only stuck full ckb node start. --- packages/neuron-wallet/src/services/node.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/neuron-wallet/src/services/node.ts b/packages/neuron-wallet/src/services/node.ts index d9731d2328..220bb5fa35 100644 --- a/packages/neuron-wallet/src/services/node.ts +++ b/packages/neuron-wallet/src/services/node.ts @@ -136,7 +136,8 @@ class NodeService { await stopMonitor('ckb') const isDefaultCKBNeedStart = await this.isDefaultCKBNeedRestart() if (isDefaultCKBNeedStart) { - if (SettingsService.getInstance().isFirstSync) { + const currentNetwork = NetworksService.getInstance().getCurrent() + if (SettingsService.getInstance().isFirstSync && currentNetwork.type === NetworkType.Default) { logger.info("CKB:\tThis is the first sync, please wait for the user's confirmation") return }