aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-08 21:25:52 +0800
committerobscuren <geffobscura@gmail.com>2014-12-08 21:25:52 +0800
commit76842b0df8b5605682362bd57fbd6eb315bcaf1f (patch)
tree8671edce47cfc7212de29eaa200c96bd2c6e47ec /whisper/peer.go
parente3a8412df3fe75fe498a3fce64fd2fd691a18183 (diff)
downloaddexon-76842b0df8b5605682362bd57fbd6eb315bcaf1f.tar
dexon-76842b0df8b5605682362bd57fbd6eb315bcaf1f.tar.gz
dexon-76842b0df8b5605682362bd57fbd6eb315bcaf1f.tar.bz2
dexon-76842b0df8b5605682362bd57fbd6eb315bcaf1f.tar.lz
dexon-76842b0df8b5605682362bd57fbd6eb315bcaf1f.tar.xz
dexon-76842b0df8b5605682362bd57fbd6eb315bcaf1f.tar.zst
dexon-76842b0df8b5605682362bd57fbd6eb315bcaf1f.zip
Additional checks and debug output
Diffstat (limited to 'whisper/peer.go')
-rw-r--r--whisper/peer.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/whisper/peer.go b/whisper/peer.go
index 3471ddb2f..d42b374b5 100644
--- a/whisper/peer.go
+++ b/whisper/peer.go
@@ -81,11 +81,16 @@ func (self *peer) broadcast(envelopes []*Envelope) error {
if err := self.ws.WriteMsg(msg); err != nil {
return err
}
+ self.peer.Infoln("broadcasted", i, "message(s)")
}
return nil
}
+func (self *peer) addKnown(envelope *Envelope) {
+ self.known.Add(envelope.Hash())
+}
+
func (self *peer) handleStatus() error {
ws := self.ws