minor fixes

This commit is contained in:
Ethan Buchman
2017-09-18 17:11:35 -04:00
parent 4e13a19339
commit 66fcdf7c7a
3 changed files with 1 additions and 13 deletions

View File

@ -17,10 +17,6 @@ build:
go build \ go build \
--ldflags "-X github.com/tendermint/tendermint/version.GitCommit=`git rev-parse HEAD`" -o build/tendermint ./cmd/tendermint/ --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: build_race:
go build -race -o build/tendermint ./cmd/tendermint go build -race -o build/tendermint ./cmd/tendermint

View File

@ -2,12 +2,9 @@ package commands
import ( import (
"fmt" "fmt"
"time"
"github.com/spf13/cobra" "github.com/spf13/cobra"
cmn "github.com/tendermint/tmlibs/common"
"github.com/tendermint/tendermint/node" "github.com/tendermint/tendermint/node"
"github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/proxy"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
@ -49,11 +46,6 @@ func NewRunNodeCmd(privVal *types.PrivValidator) *cobra.Command {
Short: "Run the tendermint node", Short: "Run the tendermint node",
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
genDocFile := config.GenesisFile() 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) genDoc, err := types.GenesisDocFromFile(genDocFile)
if err != nil { if err != nil {
return err return err

View File

@ -11,7 +11,7 @@ import (
// VersionCmd ... // VersionCmd ...
var VersionCmd = &cobra.Command{ var VersionCmd = &cobra.Command{
Use: "version", Use: "version",
Short: "Show version infoooooooo", Short: "Show version info",
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
fmt.Println(version.Version) fmt.Println(version.Version)
}, },