Skip to content

Commit bd8e4e4

Browse files
committed
feat: If genesis hash doesn't match do not proceed to sync
1 parent 761a4a8 commit bd8e4e4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/neuron-wallet/src/startup/sync-block-task/init-database.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export class InitDatabase {
5656
} else {
5757
logger.error('network genesis hash and chain do not match data fetched')
5858
this.stopped = true
59+
this.killed = true // Do not process as successful to let sync start with wrong genesis hash or chain
5960
}
6061
} catch (err) {
6162
logger.error('initDatabase error:', err)

0 commit comments

Comments
 (0)