Skip to content

Commit

Permalink
feat: If genesis hash doesn't match do not proceed to sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ashchan committed Nov 15, 2019
1 parent 761a4a8 commit bd8e4e4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd8e4e4

Please sign in to comment.