github.com/devwanda/aphelion-staking@v0.33.9/cmd/tendermint/commands/replay.go (about)

     1  package commands
     2  
     3  import (
     4  	"github.com/spf13/cobra"
     5  
     6  	"github.com/devwanda/aphelion-staking/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  	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  }