aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/ethereum.go b/ethereum.go
index dd5b44308..f38de1872 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -65,7 +65,7 @@ func main() {
go func() {
for {
res := dagger.Search(ethutil.Big("0"), ethutil.BigPow(2, 36))
- server.Broadcast("block", Encode(res.String()))
+ server.Broadcast("block", ethutil.Encode(res.String()))
}
}()
}
@@ -74,8 +74,10 @@ func main() {
err = server.ConnectToPeer("localhost:12345")
if err != nil {
- log.Println(err)
+ log.Println("Error starting server", err)
+
server.Stop()
+
return
}