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
94e82509
Commit
94e82509
authored
Nov 19, 2019
by
Felix Lange
Committed by
Péter Szilágyi
Nov 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/wnode: remove uses of common.ToHex (#20327)
parent
c013192b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
main.go
cmd/wnode/main.go
+3
-2
No files found.
cmd/wnode/main.go
View file @
94e82509
...
...
@@ -37,6 +37,7 @@ import (
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/console"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
...
...
@@ -165,7 +166,7 @@ func echo() {
fmt
.
Printf
(
"pow = %f
\n
"
,
*
argPoW
)
fmt
.
Printf
(
"mspow = %f
\n
"
,
*
argServerPoW
)
fmt
.
Printf
(
"ip = %s
\n
"
,
*
argIP
)
fmt
.
Printf
(
"pub = %s
\n
"
,
common
.
ToHex
(
crypto
.
FromECDSAPub
(
pub
)))
fmt
.
Printf
(
"pub = %s
\n
"
,
hexutil
.
Encode
(
crypto
.
FromECDSAPub
(
pub
)))
fmt
.
Printf
(
"idfile = %s
\n
"
,
*
argIDFile
)
fmt
.
Printf
(
"dbpath = %s
\n
"
,
*
argDBPath
)
fmt
.
Printf
(
"boot = %s
\n
"
,
*
argEnode
)
...
...
@@ -298,7 +299,7 @@ func startServer() error {
return
err
}
fmt
.
Printf
(
"my public key: %s
\n
"
,
common
.
ToHex
(
crypto
.
FromECDSAPub
(
&
asymKey
.
PublicKey
)))
fmt
.
Printf
(
"my public key: %s
\n
"
,
hexutil
.
Encode
(
crypto
.
FromECDSAPub
(
&
asymKey
.
PublicKey
)))
fmt
.
Println
(
server
.
NodeInfo
()
.
Enode
)
if
*
bootstrapMode
{
...
...
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