aboutsummaryrefslogtreecommitdiffstats
path: root/whisper
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-17 23:19:39 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-28 15:47:35 +0800
commit5aa523e32bedd923c4075a21daefd1b4a512277c (patch)
tree416e8c4ffbb10ca7dd1e55756422747e3d202124 /whisper
parent3563c59b12b0b8b5fd15847bf97d71dfd8416207 (diff)
downloaddexon-5aa523e32bedd923c4075a21daefd1b4a512277c.tar
dexon-5aa523e32bedd923c4075a21daefd1b4a512277c.tar.gz
dexon-5aa523e32bedd923c4075a21daefd1b4a512277c.tar.bz2
dexon-5aa523e32bedd923c4075a21daefd1b4a512277c.tar.lz
dexon-5aa523e32bedd923c4075a21daefd1b4a512277c.tar.xz
dexon-5aa523e32bedd923c4075a21daefd1b4a512277c.tar.zst
dexon-5aa523e32bedd923c4075a21daefd1b4a512277c.zip
whisper: fix send timestamp omission during envelope opening
Diffstat (limited to 'whisper')
-rw-r--r--whisper/envelope.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/whisper/envelope.go b/whisper/envelope.go
index 07762c300..ba3e4ccc9 100644
--- a/whisper/envelope.go
+++ b/whisper/envelope.go
@@ -72,6 +72,7 @@ func (self *Envelope) Open(key *ecdsa.PrivateKey) (msg *Message, err error) {
message := &Message{
Flags: data[0],
+ Sent: int64(self.Expiry - self.TTL),
}
data = data[1:]