From bd8e4e49dae38e2580d0d8cbfc4d06e631b8f82d Mon Sep 17 00:00:00 2001 From: James Chen Date: Sat, 16 Nov 2019 04:37:15 +0800 Subject: [PATCH] feat: If genesis hash doesn't match do not proceed to sync --- .../neuron-wallet/src/startup/sync-block-task/init-database.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/neuron-wallet/src/startup/sync-block-task/init-database.ts b/packages/neuron-wallet/src/startup/sync-block-task/init-database.ts index 5eb0f4b076..dcdbfcc6e5 100644 --- a/packages/neuron-wallet/src/startup/sync-block-task/init-database.ts +++ b/packages/neuron-wallet/src/startup/sync-block-task/init-database.ts @@ -56,6 +56,7 @@ export class InitDatabase { } else { logger.error('network genesis hash and chain do not match data fetched') this.stopped = true + this.killed = true // Do not process as successful to let sync start with wrong genesis hash or chain } } catch (err) { logger.error('initDatabase error:', err)