Skip to content

Commit

Permalink
Update app/app.go
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco de Borja Aranda Castillejo <borja@zetachain.com>
  • Loading branch information
kingpinXD and fbac authored Sep 30, 2024
1 parent 44c0acf commit 577d686
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -877,10 +877,11 @@ func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.Respo
// InitChainer application update at chain initialization
func (app *App) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain {
// InitChainErrorMessage is the error message displayed when trying to sync testnet or mainnet from block 1 using the latest binary.
InitChainErrorMessage := "Unable to sync testnet or mainnet from block 1 using the latest version. " +
"Please use a snapshot to sync your node. " +
"Refer to the documentation for more information: " +
"https://www.zetachain.com/docs/nodes/start-here/syncing/"
InitChainErrorMessage := `
Unable to sync testnet or mainnet from block 1 using the latest version.
Please use a snapshot to sync your node.
Refer to the documentation for more information:
https://www.zetachain.com/docs/nodes/start-here/syncing/`
// The defer is used to catch panics during InitChain
// and display a more meaningful message for people trying to sync a node from block 1 using the latest binary.
// We exit the process after displaying the message as we do not need to start a node with empty state.
Expand Down

0 comments on commit 577d686

Please sign in to comment.