2015-04-08 14:31:20 -07:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
2017-09-13 00:18:07 +02:00
|
|
|
// crypto "github.com/tendermint/go-crypto"
|
|
|
|
|
2017-05-04 21:37:12 +02:00
|
|
|
"github.com/tendermint/tmlibs/cli"
|
2017-09-13 00:18:07 +02:00
|
|
|
|
|
|
|
. "github.com/tendermint/tendermint/cmd/tendermint/commands"
|
|
|
|
// "github.com/tendermint/tendermint/types"
|
2015-04-08 14:31:20 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2017-09-13 00:18:07 +02:00
|
|
|
rootCmd := RootCmd
|
|
|
|
rootCmd.AddCommand(GenValidatorCmd, InitFilesCmd, ProbeUpnpCmd,
|
|
|
|
ReplayCmd, ReplayConsoleCmd, ResetAllCmd, ResetPrivValidatorCmd,
|
|
|
|
ShowValidatorCmd, TestnetFilesCmd, VersionCmd)
|
|
|
|
|
|
|
|
// NOTE: Implement your own type that implements the Signer interface
|
|
|
|
// and then instantiate it here.
|
2017-09-13 08:32:53 +02:00
|
|
|
/*
|
|
|
|
signer := types.NewDefaultSigner(pk)
|
|
|
|
privValidator := types.LoadPrivValidatorWithSigner(signer)
|
|
|
|
rootCmd.AddCommand(NewRunNodeCmd(privValidator))
|
|
|
|
*/
|
2017-09-13 00:18:07 +02:00
|
|
|
|
|
|
|
// Create & start node
|
2017-09-13 08:32:53 +02:00
|
|
|
rootCmd.AddCommand(NewRunNodeCmd(nil))
|
2017-09-13 00:18:07 +02:00
|
|
|
|
|
|
|
cmd := cli.PrepareBaseCmd(rootCmd, "TM", os.ExpandEnv("$HOME/.tendermint"))
|
2017-05-04 21:37:12 +02:00
|
|
|
cmd.Execute()
|
2015-04-08 14:31:20 -07:00
|
|
|
}
|