diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-10 20:53:21 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-10 20:53:21 +0800 |
commit | 7d8ce53eca90a6e93e49d584a2cff5e39aea40c0 (patch) | |
tree | 1f42e76be9c66a55407741aa15aa659fdf408850 /whisper/whisper.go | |
parent | 7e54a9c07f10ff16aabfe8bd3944c9309d4efc06 (diff) | |
download | go-tangerine-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar go-tangerine-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar.gz go-tangerine-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar.bz2 go-tangerine-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar.lz go-tangerine-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar.xz go-tangerine-7d8ce53eca90a6e93e49d584a2cff5e39aea40c0.tar.zst go-tangerine-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.go | 4 |
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 |