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

@ -9,15 +9,14 @@ import (
"github.com/tendermint/tendermint/types"
)
var runNodeCmd = &cobra.Command{
var RunNodeCmd = &cobra.Command{
Use: "node",
Short: "Run the tendermint node",
RunE: runNode,
}
func init() {
AddNodeFlags(runNodeCmd)
RootCmd.AddCommand(runNodeCmd)
AddNodeFlags(RunNodeCmd)
}
// AddNodeFlags exposes some common configuration options on the command-line