From 66fcdf7c7a2f4cb8e0bb123412a218191d61d618 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Mon, 18 Sep 2017 17:11:35 -0400 Subject: [PATCH] minor fixes --- Makefile | 4 ---- cmd/tendermint/commands/run_node.go | 8 -------- cmd/tendermint/commands/version.go | 2 +- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 328e65f8a..8c9c5214d 100644 --- a/Makefile +++ b/Makefile @@ -17,10 +17,6 @@ build: go build \ --ldflags "-X github.com/tendermint/tendermint/version.GitCommit=`git rev-parse HEAD`" -o build/tendermint ./cmd/tendermint/ -build_hsm: - go build \ - --ldflags "-X github.com/tendermint/tendermint/version.GitCommit=`git rev-parse HEAD`" -o build/tendermint ./cmd/hsm/ - build_race: go build -race -o build/tendermint ./cmd/tendermint diff --git a/cmd/tendermint/commands/run_node.go b/cmd/tendermint/commands/run_node.go index d52f2977c..3eac5d981 100644 --- a/cmd/tendermint/commands/run_node.go +++ b/cmd/tendermint/commands/run_node.go @@ -2,12 +2,9 @@ package commands import ( "fmt" - "time" "github.com/spf13/cobra" - cmn "github.com/tendermint/tmlibs/common" - "github.com/tendermint/tendermint/node" "github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/types" @@ -49,11 +46,6 @@ func NewRunNodeCmd(privVal *types.PrivValidator) *cobra.Command { Short: "Run the tendermint node", RunE: func(cmd *cobra.Command, args []string) error { genDocFile := config.GenesisFile() - for !cmn.FileExists(genDocFile) { - logger.Info(cmn.Fmt("Waiting for genesis file %v...", genDocFile)) - time.Sleep(time.Second) - } - genDoc, err := types.GenesisDocFromFile(genDocFile) if err != nil { return err diff --git a/cmd/tendermint/commands/version.go b/cmd/tendermint/commands/version.go index b212adc70..f9f545e59 100644 --- a/cmd/tendermint/commands/version.go +++ b/cmd/tendermint/commands/version.go @@ -11,7 +11,7 @@ import ( // VersionCmd ... var VersionCmd = &cobra.Command{ Use: "version", - Short: "Show version infoooooooo", + Short: "Show version info", Run: func(cmd *cobra.Command, args []string) { fmt.Println(version.Version) },