aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-03 22:56:19 +0800
committerobscuren <geffobscura@gmail.com>2015-02-03 22:56:19 +0800
commit623469cb6c6cdb6ff84dc2cb7d4409e9d7cf3f65 (patch)
tree072752e2565b68b77e82e3ddebb72aa3b4a28b28 /xeth
parent663d725026b3d41d700c12d7b4ed06da5b3f7705 (diff)
downloadgo-tangerine-623469cb6c6cdb6ff84dc2cb7d4409e9d7cf3f65.tar.gz
go-tangerine-623469cb6c6cdb6ff84dc2cb7d4409e9d7cf3f65.tar.zst
go-tangerine-623469cb6c6cdb6ff84dc2cb7d4409e9d7cf3f65.zip
Added missing whisper timestamp. Closes #284
Diffstat (limited to 'xeth')
-rw-r--r--xeth/whisper.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xeth/whisper.go b/xeth/whisper.go
index 32ad1332b..d537f8c54 100644
--- a/xeth/whisper.go
+++ b/xeth/whisper.go
@@ -99,16 +99,16 @@ type Options struct {
type WhisperMessage struct {
ref *whisper.Message
- Flags int32 `json:"flags"`
Payload string `json:"payload"`
From string `json:"from"`
+ Sent uint64 `json:"time"`
}
func NewWhisperMessage(msg *whisper.Message) WhisperMessage {
return WhisperMessage{
ref: msg,
- Flags: int32(msg.Flags),
Payload: "0x" + ethutil.Bytes2Hex(msg.Payload),
From: "0x" + ethutil.Bytes2Hex(crypto.FromECDSAPub(msg.Recover())),
+ Sent: msg.Sent,
}
}