Fixed whisper messages

* Whisper protocol wasn't properly suppling envelope slices
* Message history wasn't properly propagated
* Added 'Messages' method, filtering any current envelope with the
  supplied filter.
This commit is contained in:
obscuren
2015-01-13 13:36:44 +01:00
parent 1e5353824a
commit e3cad04dec
6 changed files with 58 additions and 34 deletions

View File

@ -8,9 +8,9 @@ import (
type Message struct {
ref *whisper.Message
Flags int32
Payload string
From string
Flags int32 `json:"flags"`
Payload string `json:"payload"`
From string `json:"from"`
}
func ToQMessage(msg *whisper.Message) *Message {