Skip to content

Commit

Permalink
Merge PR :fix replay (#1233)
Browse files Browse the repository at this point in the history
* Update replay.go

* Update replay.go
  • Loading branch information
ylsGit authored Nov 29, 2021
1 parent dddbfaf commit e16afdc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/exchaind/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
storetypes "github.com/okex/exchain/libs/cosmos-sdk/store/types"
sdk "github.com/okex/exchain/libs/cosmos-sdk/types"
tmiavl "github.com/okex/exchain/libs/iavl"
iavlconfig "github.com/okex/exchain/libs/iavl/config"
abci "github.com/okex/exchain/libs/tendermint/abci/types"
"github.com/okex/exchain/libs/tendermint/mock"
"github.com/okex/exchain/libs/tendermint/node"
Expand Down Expand Up @@ -93,13 +92,13 @@ func replayCmd(ctx *server.Context) *cobra.Command {
cmd.Flags().Bool(sm.FlagParalleledTx, false, "pall Tx")
cmd.Flags().Bool(saveBlock, false, "save block when replay")
cmd.Flags().Int64(config.FlagMaxGasUsedPerBlock, -1, "Maximum gas used of transactions in a block")
config.RegisterDynamicConfig(ctx.Logger.With("module", "config"))

return cmd
}

// replayBlock replays blocks from db, if something goes wrong, it will panic with error message.
func replayBlock(ctx *server.Context, originDataDir string) {
iavlconfig.SetDynamicConfig(config.GetOecConfig())
config.RegisterDynamicConfig(ctx.Logger.With("module", "config"))
proxyApp, err := createProxyApp(ctx)
panicError(err)

Expand Down

0 comments on commit e16afdc

Please sign in to comment.