github.com/number571/tendermint@v0.34.11-gost/cmd/tendermint/commands/replay.go (about) 1 package commands 2 3 import ( 4 "github.com/number571/tendermint/internal/consensus" 5 "github.com/spf13/cobra" 6 ) 7 8 // ReplayCmd allows replaying of messages from the WAL. 9 var ReplayCmd = &cobra.Command{ 10 Use: "replay", 11 Short: "Replay messages from WAL", 12 Run: func(cmd *cobra.Command, args []string) { 13 consensus.RunReplayFile(config.BaseConfig, config.Consensus, false) 14 }, 15 } 16 17 // ReplayConsoleCmd allows replaying of messages from the WAL in a 18 // console. 19 var ReplayConsoleCmd = &cobra.Command{ 20 Use: "replay-console", 21 Aliases: []string{"replay_console"}, 22 Short: "Replay messages from WAL in a console", 23 Run: func(cmd *cobra.Command, args []string) { 24 consensus.RunReplayFile(config.BaseConfig, config.Consensus, true) 25 }, 26 PreRun: deprecateSnakeCase, 27 }