github.com/vipernet-xyz/tm@v0.34.24/cmd/tendermint/commands/replay.go (about)

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