diff options
author | Felix Lange <fjl@twurst.com> | 2015-04-13 19:39:59 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-04-13 19:39:59 +0800 |
commit | faa2747809ddce7e7b121926ae7dece8fbecae52 (patch) | |
tree | d44594adae244c34ffeff0f0c871f895435a28dd /ui | |
parent | 61db7a71dd809a003b5c899398b02945c04890c9 (diff) | |
parent | 5467e7b312a29f492ce3063686711ea0bea6dbc3 (diff) | |
download | dexon-faa2747809ddce7e7b121926ae7dece8fbecae52.tar dexon-faa2747809ddce7e7b121926ae7dece8fbecae52.tar.gz dexon-faa2747809ddce7e7b121926ae7dece8fbecae52.tar.bz2 dexon-faa2747809ddce7e7b121926ae7dece8fbecae52.tar.lz dexon-faa2747809ddce7e7b121926ae7dece8fbecae52.tar.xz dexon-faa2747809ddce7e7b121926ae7dece8fbecae52.tar.zst dexon-faa2747809ddce7e7b121926ae7dece8fbecae52.zip |
Merge pull request #690 from karalabe/whisper-cleanup
Whisper cleanup, part 1
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/qwhisper/whisper.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/qwhisper/whisper.go b/ui/qt/qwhisper/whisper.go index bf165bbcc..3c2d0a4b9 100644 --- a/ui/qt/qwhisper/whisper.go +++ b/ui/qt/qwhisper/whisper.go @@ -37,8 +37,8 @@ func (self *Whisper) Post(payload []string, to, from string, topics []string, pr pk := crypto.ToECDSAPub(common.FromHex(from)) if key := self.Whisper.GetIdentity(pk); key != nil { msg := whisper.NewMessage(data) - envelope, err := msg.Seal(time.Duration(priority*100000), whisper.Opts{ - Ttl: time.Duration(ttl) * time.Second, + envelope, err := msg.Wrap(time.Duration(priority*100000), whisper.Options{ + TTL: time.Duration(ttl) * time.Second, To: crypto.ToECDSAPub(common.FromHex(to)), From: key, Topics: whisper.TopicsFromString(topics...), |