aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisper.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-10 20:53:21 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-10 20:53:21 +0800
commit7d8ce53eca90a6e93e49d584a2cff5e39aea40c0 (patch)
tree1f42e76be9c66a55407741aa15aa659fdf408850 /whisper/whisper.go
parent7e54a9c07f10ff16aabfe8bd3944c9309d4efc06 (diff)
downloaddexon-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar
dexon-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar.gz
dexon-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar.bz2
dexon-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar.lz
dexon-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar.xz
dexon-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar.zst
dexon-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.zip
whisper: polish the messages, fix some bugs, tests
Bugs fixed: - Use randomly generated flags as the spec required. - During envelope opening check the first bit only for signature.
Diffstat (limited to 'whisper/whisper.go')
-rw-r--r--whisper/whisper.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/whisper/whisper.go b/whisper/whisper.go
index 00dcb1932..3cb92a07a 100644
--- a/whisper/whisper.go
+++ b/whisper/whisper.go
@@ -28,7 +28,9 @@ type MessageEvent struct {
Message *Message
}
-const DefaultTtl = 50 * time.Second
+const (
+ DefaultTimeToLive = 50 * time.Second
+)
type Whisper struct {
protocol p2p.Protocol