aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisper.go
diff options
context:
space:
mode:
Diffstat (limited to 'whisper/whisper.go')
-rw-r--r--whisper/whisper.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/whisper/whisper.go b/whisper/whisper.go
index d9affe09b..f3b539d2c 100644
--- a/whisper/whisper.go
+++ b/whisper/whisper.go
@@ -25,17 +25,19 @@ const (
signatureLength = 65
)
+const (
+ DefaultTimeToLive = 50 * time.Second
+ DefaultProofOfWork = 50 * time.Millisecond
+)
+
type MessageEvent struct {
To *ecdsa.PrivateKey
From *ecdsa.PublicKey
Message *Message
}
-const (
- DefaultTimeToLive = 50 * time.Second
- DefaultProofOfWork = 50 * time.Millisecond
-)
-
+// Whisper represents a dark communication interface through the Ethereum
+// network, using its very own P2P communication layer.
type Whisper struct {
protocol p2p.Protocol
filters *filter.Filters
@@ -199,7 +201,6 @@ func (self *Whisper) add(envelope *Envelope) error {
self.expiry[envelope.Expiry].Add(hash)
go self.postEvent(envelope)
}
-
glog.V(logger.Detail).Infof("added whisper envelope %x\n", envelope)
return nil