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
7a5c1b28
Commit
7a5c1b28
authored
Dec 03, 2018
by
Corey Lin
Committed by
Guillaume Ballet
Dec 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whisperv6: remove duplicated code (#18015)
parent
a3fd415c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
api_test.go
whisper/whisperv6/api_test.go
+1
-16
No files found.
whisper/whisperv6/api_test.go
View file @
7a5c1b28
...
...
@@ -18,27 +18,12 @@ package whisperv6
import
(
"bytes"
"crypto/ecdsa"
"testing"
"time"
mapset
"github.com/deckarep/golang-set"
"github.com/ethereum/go-ethereum/common"
)
func
TestMultipleTopicCopyInNewMessageFilter
(
t
*
testing
.
T
)
{
w
:=
&
Whisper
{
privateKeys
:
make
(
map
[
string
]
*
ecdsa
.
PrivateKey
),
symKeys
:
make
(
map
[
string
][]
byte
),
envelopes
:
make
(
map
[
common
.
Hash
]
*
Envelope
),
expirations
:
make
(
map
[
uint32
]
mapset
.
Set
),
peers
:
make
(
map
[
*
Peer
]
struct
{}),
messageQueue
:
make
(
chan
*
Envelope
,
messageQueueLimit
),
p2pMsgQueue
:
make
(
chan
*
Envelope
,
messageQueueLimit
),
quit
:
make
(
chan
struct
{}),
syncAllowance
:
DefaultSyncAllowance
,
}
w
.
filters
=
NewFilters
(
w
)
w
:=
New
(
nil
)
keyID
,
err
:=
w
.
GenerateSymKey
()
if
err
!=
nil
{
...
...
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