Skip to content

Commit

Permalink
generate files
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Sep 26, 2024
1 parent 64d9538 commit 8137451
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"io"
"net/http"
"os"
"runtime/debug"
"time"

cosmoserrors "cosmossdk.io/errors"
Expand Down Expand Up @@ -91,6 +92,7 @@ import (

"github.com/zeta-chain/node/app/ante"
"github.com/zeta-chain/node/docs/openapi"
zetaconstant "github.com/zeta-chain/node/pkg/constant"
zetamempool "github.com/zeta-chain/node/pkg/mempool"
"github.com/zeta-chain/node/precompiles"
srvflags "github.com/zeta-chain/node/server/flags"
Expand Down Expand Up @@ -878,7 +880,10 @@ func (app *App) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.Res
defer func() {
if r := recover(); r != nil {
ctx.Logger().Error("panic occurred during InitGenesis", "error", r)
ctx.Logger().Info("You cannot sync testnet or mainnet from block 1 using this version. You should sync your node from a snapshot")
ctx.Logger().Debug("stack trace", "stack", string(debug.Stack()))
ctx.Logger().
Info(zetaconstant.InitChainErrorMessage)
os.Exit(1)
}
}()
var genesisState GenesisState
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
* [2944](https://github.com/zeta-chain/node/pull/2844) - add tsspubkey to index for tss keygen voting
* [2842](https://github.com/zeta-chain/node/pull/2842) - fix: move interval assignment out of cctx loop in EVM outbound tx scheduler
* [2853](https://github.com/zeta-chain/node/pull/2853) - calling precompile through sc with sc state update
* [2925](https://github.com/zeta-chain/node/pull/2925) - add recover to init chainer to diplay informative message when starting a node from block 1

## v20.0.0

Expand Down
3 changes: 3 additions & 0 deletions pkg/constant/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ const (

// OptionUnpause is the argument used in CmdUpdateERC20CustodyPauseStatus to unpause the ERC20 custody contract
OptionUnpause = "unpause"

// InitChainErrorMessage is the error message displayed when trying to sync testnet or mainnet from block 1
InitChainErrorMessage = "You cannot sync testnet or mainnet from block 1 using the latest version. You should sync your node from a snapshot"
)

0 comments on commit 8137451

Please sign in to comment.