Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f8a4cd7e
Commit
f8a4cd7e
authored
Apr 10, 2015
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xeth/whisper, ui/qt/qwhisper: fix API update breaks.
parent
0e4f21fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
whisper.go
ui/qt/qwhisper/whisper.go
+2
-2
whisper.go
xeth/whisper.go
+2
-2
No files found.
ui/qt/qwhisper/whisper.go
View file @
f8a4cd7e
...
@@ -37,8 +37,8 @@ func (self *Whisper) Post(payload []string, to, from string, topics []string, pr
...
@@ -37,8 +37,8 @@ func (self *Whisper) Post(payload []string, to, from string, topics []string, pr
pk
:=
crypto
.
ToECDSAPub
(
common
.
FromHex
(
from
))
pk
:=
crypto
.
ToECDSAPub
(
common
.
FromHex
(
from
))
if
key
:=
self
.
Whisper
.
GetIdentity
(
pk
);
key
!=
nil
{
if
key
:=
self
.
Whisper
.
GetIdentity
(
pk
);
key
!=
nil
{
msg
:=
whisper
.
NewMessage
(
data
)
msg
:=
whisper
.
NewMessage
(
data
)
envelope
,
err
:=
msg
.
Seal
(
time
.
Duration
(
priority
*
100000
),
whisper
.
Opt
s
{
envelope
,
err
:=
msg
.
Wrap
(
time
.
Duration
(
priority
*
100000
),
whisper
.
Option
s
{
T
tl
:
time
.
Duration
(
ttl
)
*
time
.
Second
,
T
TL
:
time
.
Duration
(
ttl
)
*
time
.
Second
,
To
:
crypto
.
ToECDSAPub
(
common
.
FromHex
(
to
)),
To
:
crypto
.
ToECDSAPub
(
common
.
FromHex
(
to
)),
From
:
key
,
From
:
key
,
Topics
:
whisper
.
TopicsFromString
(
topics
...
),
Topics
:
whisper
.
TopicsFromString
(
topics
...
),
...
...
xeth/whisper.go
View file @
f8a4cd7e
...
@@ -32,8 +32,8 @@ func (self *Whisper) Post(payload string, to, from string, topics []string, prio
...
@@ -32,8 +32,8 @@ func (self *Whisper) Post(payload string, to, from string, topics []string, prio
pk
:=
crypto
.
ToECDSAPub
(
common
.
FromHex
(
from
))
pk
:=
crypto
.
ToECDSAPub
(
common
.
FromHex
(
from
))
if
key
:=
self
.
Whisper
.
GetIdentity
(
pk
);
key
!=
nil
||
len
(
from
)
==
0
{
if
key
:=
self
.
Whisper
.
GetIdentity
(
pk
);
key
!=
nil
||
len
(
from
)
==
0
{
msg
:=
whisper
.
NewMessage
(
common
.
FromHex
(
payload
))
msg
:=
whisper
.
NewMessage
(
common
.
FromHex
(
payload
))
envelope
,
err
:=
msg
.
Seal
(
time
.
Duration
(
priority
*
100000
),
whisper
.
Opt
s
{
envelope
,
err
:=
msg
.
Wrap
(
time
.
Duration
(
priority
*
100000
),
whisper
.
Option
s
{
T
tl
:
time
.
Duration
(
ttl
)
*
time
.
Second
,
T
TL
:
time
.
Duration
(
ttl
)
*
time
.
Second
,
To
:
crypto
.
ToECDSAPub
(
common
.
FromHex
(
to
)),
To
:
crypto
.
ToECDSAPub
(
common
.
FromHex
(
to
)),
From
:
key
,
From
:
key
,
Topics
:
whisper
.
TopicsFromString
(
topics
...
),
Topics
:
whisper
.
TopicsFromString
(
topics
...
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment