Example that showcases how to build your own tendermint node

This example shows how a user of the tendermint library can build their
own node and supply it with its own commands. It includes two todos in
order to make it easier for library users to use tendermint.
This commit is contained in:
Adrian Brink
2017-08-30 22:21:32 +02:00
committed by Ethan Buchman
parent b50339e8e7
commit 2c129447fd
12 changed files with 161 additions and 48 deletions

View File

@ -6,7 +6,7 @@ import (
"github.com/tendermint/tendermint/consensus"
)
var replayCmd = &cobra.Command{
var ReplayCmd = &cobra.Command{
Use: "replay",
Short: "Replay messages from WAL",
Run: func(cmd *cobra.Command, args []string) {
@ -14,15 +14,10 @@ var replayCmd = &cobra.Command{
},
}
var replayConsoleCmd = &cobra.Command{
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)
},
}
func init() {
RootCmd.AddCommand(replayCmd)
RootCmd.AddCommand(replayConsoleCmd)
}