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
c9f56626
Commit
c9f56626
authored
10 years ago
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged
parent
bfa12d75
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
5 deletions
+0
-5
browser.qml
cmd/mist/assets/qml/browser.qml
+0
-1
whisper.go
ui/qt/qwhisper/whisper.go
+0
-2
message.go
whisper/message.go
+0
-2
No files found.
cmd/mist/assets/qml/browser.qml
View file @
c9f56626
...
...
@@ -333,7 +333,6 @@ Rectangle {
case
"shh_newIdentity"
:
var
id
=
shh
.
newIdentity
()
console
.
log
(
"newIdentity"
,
id
)
postData
(
data
.
_id
,
id
)
break
...
...
This diff is collapsed.
Click to expand it.
ui/qt/qwhisper/whisper.go
View file @
c9f56626
package
qwhisper
import
(
"fmt"
"time"
"github.com/ethereum/go-ethereum/crypto"
...
...
@@ -42,7 +41,6 @@ func (self *Whisper) Post(payload []string, to, from string, topics []string, pr
data
=
append
(
data
,
ethutil
.
Hex2Bytes
(
d
)
...
)
}
fmt
.
Println
(
payload
,
data
,
"from"
,
from
,
fromHex
(
from
),
crypto
.
ToECDSA
(
fromHex
(
from
)))
msg
:=
whisper
.
NewMessage
(
data
)
envelope
,
err
:=
msg
.
Seal
(
time
.
Duration
(
priority
*
100000
),
whisper
.
Opts
{
Ttl
:
time
.
Duration
(
ttl
),
...
...
This diff is collapsed.
Click to expand it.
whisper/message.go
View file @
c9f56626
...
...
@@ -2,7 +2,6 @@ package whisper
import
(
"crypto/ecdsa"
"fmt"
"time"
"github.com/ethereum/go-ethereum/crypto"
...
...
@@ -54,7 +53,6 @@ type Opts struct {
}
func
(
self
*
Message
)
Seal
(
pow
time
.
Duration
,
opts
Opts
)
(
*
Envelope
,
error
)
{
fmt
.
Println
(
opts
)
if
opts
.
From
!=
nil
{
err
:=
self
.
sign
(
opts
.
From
)
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
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