From bfe472987f9c8e767964a77d66532bbcea89d250 Mon Sep 17 00:00:00 2001 From: Matthew Wampler-Doty Date: Mon, 16 Mar 2015 03:51:14 -0700 Subject: [PATCH 1/3] Ingoring OS X nonsense --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 1c593002a..c4760c4f6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.swo .bak tendermint +.DS_Store From a78d9c2b59e0625a0f3308b7b29d37d74d52433c Mon Sep 17 00:00:00 2001 From: Matthew Wampler-Doty Date: Mon, 16 Mar 2015 03:51:24 -0700 Subject: [PATCH 2/3] Making is more fancy --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ebb1d9dbe..d8ac7f82a 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ +.PHONY: get_deps build all list_deps + all: build -build: +build: get_deps go build -o tendermint github.com/tendermint/tendermint/cmd -build_race: +build_race: get_deps go build -race -o tendermint github.com/tendermint/tendermint/cmd -test: +test: build go test github.com/tendermint/tendermint/... list_deps: @@ -14,3 +16,6 @@ list_deps: get_deps: go get github.com/tendermint/tendermint/... + +clean: + rm -f tendermint From c600337a6bb6d32bd2c393b1bed8b0669cc8f44e Mon Sep 17 00:00:00 2001 From: Matthew Wampler-Doty Date: Mon, 16 Mar 2015 03:51:52 -0700 Subject: [PATCH 3/3] RPC only listening to localhost --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 47c9b8ba6..5622614e1 100644 --- a/config/config.go +++ b/config/config.go @@ -37,7 +37,7 @@ Level = "debug" [RPC.HTTP] # For the RPC API HTTP server. Port required. -ListenAddr = "0.0.0.0:8081" +ListenAddr = "localhost:8081" [Alert] # TODO: Document options @@ -55,7 +55,7 @@ func initDefaults() { App.SetDefault("Log.Stdout.Level", "info") App.SetDefault("Log.File.Dir", rootDir+"/log") App.SetDefault("Log.File.Level", "debug") - App.SetDefault("RPC.HTTP.ListenAddr", "0.0.0.0:8081") + App.SetDefault("RPC.HTTP.ListenAddr", "localhost:8081") App.SetDefault("GenesisFile", rootDir+"/genesis.json") App.SetDefault("AddrBookFile", rootDir+"/addrbook.json")