From 26401643040c87ceae6f55970aec300ccb7dc5f1 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Wed, 29 Nov 2017 09:28:25 +0100 Subject: [PATCH] whisper: removal of the AESNonce field That was left out in the last commit. --- whisper/whisperv6/envelope.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/whisper/whisperv6/envelope.go b/whisper/whisperv6/envelope.go index 58c56bceea..23cf879fd3 100644 --- a/whisper/whisperv6/envelope.go +++ b/whisper/whisperv6/envelope.go @@ -61,13 +61,12 @@ 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, msg *sentMessage) *Envelope { env := Envelope{ Version: make([]byte, 1), Expiry: uint32(time.Now().Add(time.Second * time.Duration(ttl)).Unix()), TTL: ttl, Topic: topic, - AESNonce: aesNonce, Data: msg.Raw, Nonce: 0, }