aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-27 02:19:01 +0800
committerobscuren <geffobscura@gmail.com>2014-09-27 02:19:01 +0800
commit0acdeca3d6df4716d8789444c7bb645c73a27324 (patch)
treeaf1f7e9c52e00fca4f4093f617f4d8f92a107735 /peer.go
parenta45e293267bfa4147f291dc15625e089bdc41ab7 (diff)
downloadgo-tangerine-0acdeca3d6df4716d8789444c7bb645c73a27324.tar
go-tangerine-0acdeca3d6df4716d8789444c7bb645c73a27324.tar.gz
go-tangerine-0acdeca3d6df4716d8789444c7bb645c73a27324.tar.bz2
go-tangerine-0acdeca3d6df4716d8789444c7bb645c73a27324.tar.lz
go-tangerine-0acdeca3d6df4716d8789444c7bb645c73a27324.tar.xz
go-tangerine-0acdeca3d6df4716d8789444c7bb645c73a27324.tar.zst
go-tangerine-0acdeca3d6df4716d8789444c7bb645c73a27324.zip
skip messages properly
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/peer.go b/peer.go
index f1fff59af..00f0a145c 100644
--- a/peer.go
+++ b/peer.go
@@ -314,14 +314,14 @@ func (p *Peer) HandleOutbound() {
out:
for {
+ skip:
select {
// Main message queue. All outbound messages are processed through here
case msg := <-p.outputQueue:
if !p.statusKnown {
switch msg.Type {
- case ethwire.MsgGetTxsTy, ethwire.MsgGetBlockHashesTy, ethwire.MsgGetBlocksTy, ethwire.MsgBlockHashesTy, ethwire.MsgBlockTy:
- peerlogger.Debugln("Blocked outgoing [eth] message to peer without the [eth] cap.")
- break
+ case ethwire.MsgStatusTy, ethwire.MsgGetTxsTy, ethwire.MsgTxTy, ethwire.MsgGetBlockHashesTy, ethwire.MsgBlockHashesTy, ethwire.MsgGetBlocksTy, ethwire.MsgBlockTy:
+ break skip
}
}