aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/message.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-03 23:16:05 +0800
committerobscuren <geffobscura@gmail.com>2015-02-03 23:16:05 +0800
commit7bd2fbe2b1445c26190008d21ad52dc5c364765c (patch)
tree88553917d6be4a51f4a9dd87f35ce31782319ee1 /whisper/message.go
parent623469cb6c6cdb6ff84dc2cb7d4409e9d7cf3f65 (diff)
downloaddexon-7bd2fbe2b1445c26190008d21ad52dc5c364765c.tar
dexon-7bd2fbe2b1445c26190008d21ad52dc5c364765c.tar.gz
dexon-7bd2fbe2b1445c26190008d21ad52dc5c364765c.tar.bz2
dexon-7bd2fbe2b1445c26190008d21ad52dc5c364765c.tar.lz
dexon-7bd2fbe2b1445c26190008d21ad52dc5c364765c.tar.xz
dexon-7bd2fbe2b1445c26190008d21ad52dc5c364765c.tar.zst
dexon-7bd2fbe2b1445c26190008d21ad52dc5c364765c.zip
Fixed whisper "to" filtering. Closes #283
Diffstat (limited to 'whisper/message.go')
-rw-r--r--whisper/message.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/message.go b/whisper/message.go
index fa631b2ef..23b5cfb0e 100644
--- a/whisper/message.go
+++ b/whisper/message.go
@@ -11,11 +11,11 @@ type Message struct {
Flags byte
Signature []byte
Payload []byte
- Sent uint64
+ Sent int64
}
func NewMessage(payload []byte) *Message {
- return &Message{Flags: 0, Payload: payload}
+ return &Message{Flags: 0, Payload: payload, Sent: time.Now().Unix()}
}
func (self *Message) hash() []byte {