aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/message.go
diff options
context:
space:
mode:
Diffstat (limited to 'whisper/message.go')
-rw-r--r--whisper/message.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/whisper/message.go b/whisper/message.go
index bbad8e6a3..5d9e5b5c1 100644
--- a/whisper/message.go
+++ b/whisper/message.go
@@ -11,10 +11,13 @@ type Message struct {
Flags byte
Signature []byte
Payload []byte
+ Sent int64
+
+ To *ecdsa.PublicKey
}
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 {