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
cf147c71
Commit
cf147c71
authored
Feb 19, 2019
by
Felix Lange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p2p/discover: remove unused function
parent
f7f6a460
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
table_test.go
p2p/discover/table_test.go
+2
-0
table_util_test.go
p2p/discover/table_util_test.go
+0
-9
No files found.
p2p/discover/table_test.go
View file @
cf147c71
...
...
@@ -624,6 +624,8 @@ func (tn *preminedTestnet) findnode(toid enode.ID, toaddr *net.UDPAddr, target e
func
(
*
preminedTestnet
)
close
()
{}
func
(
*
preminedTestnet
)
ping
(
toid
enode
.
ID
,
toaddr
*
net
.
UDPAddr
)
error
{
return
nil
}
var
_
=
(
*
preminedTestnet
)
.
mine
// avoid linter warning about mine being dead code.
// mine generates a testnet struct literal with nodes at
// various distances to the given target.
func
(
tn
*
preminedTestnet
)
mine
(
target
encPubkey
)
{
...
...
p2p/discover/table_util_test.go
View file @
cf147c71
...
...
@@ -17,7 +17,6 @@
package
discover
import
(
"crypto/ecdsa"
"encoding/hex"
"fmt"
"math/rand"
...
...
@@ -167,11 +166,3 @@ func hexEncPubkey(h string) (ret encPubkey) {
copy
(
ret
[
:
],
b
)
return
ret
}
func
hexPubkey
(
h
string
)
*
ecdsa
.
PublicKey
{
k
,
err
:=
decodePubkey
(
hexEncPubkey
(
h
))
if
err
!=
nil
{
panic
(
err
)
}
return
k
}
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