aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-02 08:39:06 +0800
committerobscuren <geffobscura@gmail.com>2014-02-02 08:39:06 +0800
commitb70fe3a9bea652c795fc75cf79ed21fc04ea0937 (patch)
tree1941c02d00577e7010976894a3fd89bf9a69e6ca /ethereum.go
parentdfa778fed684e97f868aab9b246646156a39e24a (diff)
downloadgo-tangerine-b70fe3a9bea652c795fc75cf79ed21fc04ea0937.tar
go-tangerine-b70fe3a9bea652c795fc75cf79ed21fc04ea0937.tar.gz
go-tangerine-b70fe3a9bea652c795fc75cf79ed21fc04ea0937.tar.bz2
go-tangerine-b70fe3a9bea652c795fc75cf79ed21fc04ea0937.tar.lz
go-tangerine-b70fe3a9bea652c795fc75cf79ed21fc04ea0937.tar.xz
go-tangerine-b70fe3a9bea652c795fc75cf79ed21fc04ea0937.tar.zst
go-tangerine-b70fe3a9bea652c795fc75cf79ed21fc04ea0937.zip
Reverted back to messages
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/ethereum.go b/ethereum.go
index b192b544d..a7a2f6b8c 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -169,7 +169,7 @@ func (s *Ethereum) InOutPeers() []*Peer {
return inboundPeers[:length]
}
-func (s *Ethereum) Broadcast(msgType ethwire.MsgType, data interface{}) {
+func (s *Ethereum) Broadcast(msgType ethwire.MsgType, data []interface{}) {
msg := ethwire.NewMessage(msgType, data)
eachPeer(s.peers, func(p *Peer, e *list.Element) {
p.QueueMessage(msg)
@@ -237,12 +237,7 @@ func (s *Ethereum) Start() {
// Bind to addr and port
ln, err := net.Listen("tcp", ":30303")
if err != nil {
- // This is mainly for testing to create a "network"
- //if ethutil.Config.Debug {
- //log.Println("Connection listening disabled. Acting as client")
- //} else {
- log.Fatal(err)
- //}
+ log.Println("Connection listening disabled. Acting as client")
} else {
s.Addr = ln.Addr()
// Starting accepting connections