diff options
author | obscuren <geffobscura@gmail.com> | 2014-01-12 23:50:59 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-01-12 23:50:59 +0800 |
commit | e280a2a7e3d51f0fb3b35e580332d9b51a7e50c1 (patch) | |
tree | e8af1c2484046cd7113d6d54838edf334ee60e1e /ethereum.go | |
parent | fedbd9a962b2e800afe2e191d768f47172172741 (diff) | |
download | go-tangerine-e280a2a7e3d51f0fb3b35e580332d9b51a7e50c1.tar.gz go-tangerine-e280a2a7e3d51f0fb3b35e580332d9b51a7e50c1.tar.zst go-tangerine-e280a2a7e3d51f0fb3b35e580332d9b51a7e50c1.zip |
Server testing blocks
Diffstat (limited to 'ethereum.go')
-rw-r--r-- | ethereum.go | 6 |
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 } |