whisper, xeth/whisper: surface TTL and hash to the API
This commit is contained in:
@ -72,7 +72,8 @@ func (self *Envelope) Open(key *ecdsa.PrivateKey) (msg *Message, err error) {
|
||||
|
||||
message := &Message{
|
||||
Flags: data[0],
|
||||
Sent: int64(self.Expiry - self.TTL),
|
||||
Sent: time.Unix(int64(self.Expiry-self.TTL), 0),
|
||||
TTL: time.Duration(self.TTL) * time.Second,
|
||||
Hash: self.Hash(),
|
||||
}
|
||||
data = data[1:]
|
||||
|
Reference in New Issue
Block a user