mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-15 14:21:22 +00:00
27 lines
686 B
Go
27 lines
686 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/tendermint/tendermint/consensus"
|
|
)
|
|
|
|
// ReplayCmd allows replaying of messages from the WAL.
|
|
var ReplayCmd = &cobra.Command{
|
|
Use: "replay",
|
|
Short: "Replay messages from WAL",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
consensus.RunReplayFile(config.BaseConfig, config.Consensus, false)
|
|
},
|
|
}
|
|
|
|
// ReplayConsoleCmd allows replaying of messages from the WAL in a
|
|
// console.
|
|
var ReplayConsoleCmd = &cobra.Command{
|
|
Use: "replay_console",
|
|
Short: "Replay messages from WAL in a console",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
consensus.RunReplayFile(config.BaseConfig, config.Consensus, true)
|
|
},
|
|
}
|