From 1ecb3b4cf358a9c8fb0152b54bde70c925eaa5c9 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Fri, 14 Nov 2014 15:53:45 -0600 Subject: Remove failing Printf --- cmd/ethereum/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/ethereum') diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go index ed42dfafb..c894a8f85 100644 --- a/cmd/ethereum/main.go +++ b/cmd/ethereum/main.go @@ -93,7 +93,8 @@ func main() { os.Exit(1) } - fmt.Printf("RLP: %x\nstate: %x\nhash: %x\n", ethutil.Rlp(block), block.GetRoot(), block.Hash()) + // block.GetRoot() does not exist + //fmt.Printf("RLP: %x\nstate: %x\nhash: %x\n", ethutil.Rlp(block), block.GetRoot(), block.Hash()) // Leave the Println. This needs clean output for piping fmt.Printf("%s\n", block.State().Dump()) -- cgit v1.2.3 From 3588c4a9feb4204419d9c0fa2a4c9089120221b7 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Sat, 15 Nov 2014 20:21:03 -0600 Subject: formatting update per gofmt --- cmd/ethereum/repl/repl_windows.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cmd/ethereum') diff --git a/cmd/ethereum/repl/repl_windows.go b/cmd/ethereum/repl/repl_windows.go index 9b1eb3b7d..d2c405ee9 100644 --- a/cmd/ethereum/repl/repl_windows.go +++ b/cmd/ethereum/repl/repl_windows.go @@ -32,7 +32,7 @@ func (self *JSRepl) read() { if err != nil { fmt.Println("Error reading input", err) } else { - if (string(str) == "exit") { + if string(str) == "exit" { self.Stop() break } else { @@ -46,25 +46,25 @@ func addHistory(s string) { } func printColored(outputVal string) { - for ; outputVal != "" ; { + for outputVal != "" { codePart := "" - if (strings.HasPrefix(outputVal, "\033[32m")) { + if strings.HasPrefix(outputVal, "\033[32m") { codePart = "\033[32m" changeColor(2) } - if (strings.HasPrefix(outputVal, "\033[1m\033[30m")) { + if strings.HasPrefix(outputVal, "\033[1m\033[30m") { codePart = "\033[1m\033[30m" changeColor(8) } - if (strings.HasPrefix(outputVal, "\033[31m")) { + if strings.HasPrefix(outputVal, "\033[31m") { codePart = "\033[31m" changeColor(red) } - if (strings.HasPrefix(outputVal, "\033[35m")) { + if strings.HasPrefix(outputVal, "\033[35m") { codePart = "\033[35m" changeColor(5) } - if (strings.HasPrefix(outputVal, "\033[0m")) { + if strings.HasPrefix(outputVal, "\033[0m") { codePart = "\033[0m" resetColorful() } -- cgit v1.2.3