aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-10 22:03:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-10 22:03:08 +0800
commitf8a4cd7ec17774ad841f85241855820424ccfd2d (patch)
tree855b8de8ec1852db58754a3e6026f702b9b6c406
parent0e4f21fc376fae88b59cb33a06a1ddd36a11a592 (diff)
downloadgo-tangerine-f8a4cd7ec17774ad841f85241855820424ccfd2d.tar
go-tangerine-f8a4cd7ec17774ad841f85241855820424ccfd2d.tar.gz
go-tangerine-f8a4cd7ec17774ad841f85241855820424ccfd2d.tar.bz2
go-tangerine-f8a4cd7ec17774ad841f85241855820424ccfd2d.tar.lz
go-tangerine-f8a4cd7ec17774ad841f85241855820424ccfd2d.tar.xz
go-tangerine-f8a4cd7ec17774ad841f85241855820424ccfd2d.tar.zst
go-tangerine-f8a4cd7ec17774ad841f85241855820424ccfd2d.zip
xeth/whisper, ui/qt/qwhisper: fix API update breaks.
-rw-r--r--ui/qt/qwhisper/whisper.go4
-rw-r--r--xeth/whisper.go4
2 files changed, 4 insertions, 4 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...),
diff --git a/xeth/whisper.go b/xeth/whisper.go
index 72e1ee04f..51caec8d6 100644
--- a/xeth/whisper.go
+++ b/xeth/whisper.go
@@ -32,8 +32,8 @@ func (self *Whisper) Post(payload string, to, from string, topics []string, prio
pk := crypto.ToECDSAPub(common.FromHex(from))
if key := self.Whisper.GetIdentity(pk); key != nil || len(from) == 0 {
msg := whisper.NewMessage(common.FromHex(payload))
- 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...),