diff options
author | Bas van Kervel <basvankervel@gmail.com> | 2017-06-13 17:49:07 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2017-06-15 17:53:15 +0800 |
commit | b58a5016738b92db19e08ec87ef34ce3250fae6b (patch) | |
tree | fa9485b3f711204b14edae5dcbc812e624490c68 /whisper/whisperv5/envelope.go | |
parent | 80f7c6c2996ad47f70a5070c400b1fd87a20c59c (diff) | |
download | dexon-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar dexon-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar.gz dexon-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar.bz2 dexon-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar.lz dexon-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar.xz dexon-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar.zst dexon-b58a5016738b92db19e08ec87ef34ce3250fae6b.zip |
whisperv5: integrate whisper and add whisper RPC simulator
Diffstat (limited to 'whisper/whisperv5/envelope.go')
-rw-r--r-- | whisper/whisperv5/envelope.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/whisper/whisperv5/envelope.go b/whisper/whisperv5/envelope.go index d95fcab75..169cbba9d 100644 --- a/whisper/whisperv5/envelope.go +++ b/whisper/whisperv5/envelope.go @@ -62,7 +62,7 @@ func (e *Envelope) rlpWithoutNonce() []byte { // NewEnvelope wraps a Whisper message with expiration and destination data // included into an envelope for network forwarding. -func NewEnvelope(ttl uint32, topic TopicType, aesNonce []byte, msg *SentMessage) *Envelope { +func NewEnvelope(ttl uint32, topic TopicType, aesNonce []byte, msg *sentMessage) *Envelope { env := Envelope{ Version: make([]byte, 1), Expiry: uint32(time.Now().Add(time.Second * time.Duration(ttl)).Unix()), |