From dc051eb87ff8c5c356c6b57e222f0f84e1aa71fe Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Mon, 20 Apr 2015 18:01:30 -0700 Subject: [PATCH] third time is the charm --- cmd/barak/main.go | 5 ++++- cmd/barak/seed3 | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 cmd/barak/seed3 diff --git a/cmd/barak/main.go b/cmd/barak/main.go index deafa0b5c..65229aa7c 100644 --- a/cmd/barak/main.go +++ b/cmd/barak/main.go @@ -81,7 +81,10 @@ func main() { } // Write pid to file. - AtomicWriteFile(barak.rootDir+"/pidfile", []byte(Fmt("%v", barak.pid))) + err = AtomicWriteFile(barak.rootDir+"/pidfile", []byte(Fmt("%v", barak.pid))) + if err != nil { + panic(Fmt("Error writing pidfile: %v", err)) + } // Debug. fmt.Printf("Options: %v\n", options) diff --git a/cmd/barak/seed3 b/cmd/barak/seed3 new file mode 100644 index 000000000..dfcfe76c5 --- /dev/null +++ b/cmd/barak/seed3 @@ -0,0 +1,9 @@ +{ + "ListenAddress": "0.0.0.0:8084", + "Validators": [ + { + "VotingPower": 1, + "PubKey": [1,"3A2C5C341FFC1D5F7AB518519FF8289D3BFAB82DFD6E167B926FAD72C1BF10F8"] + } + ] +}