You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
757 B

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