Fixed whisper "to" filtering. Closes #283

This commit is contained in:
obscuren
2015-02-03 07:16:05 -08:00
parent 623469cb6c
commit 7bd2fbe2b1
4 changed files with 16 additions and 4 deletions

View File

@ -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 {