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
a3a2c6b0
Unverified
Commit
a3a2c6b0
authored
7 years ago
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/puppeth: fix typos and review suggestions
parent
b169a309
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
19 additions
and
25 deletions
+19
-25
module_dashboard.go
cmd/puppeth/module_dashboard.go
+1
-1
module_ethstats.go
cmd/puppeth/module_ethstats.go
+1
-1
module_explorer.go
cmd/puppeth/module_explorer.go
+1
-1
module_faucet.go
cmd/puppeth/module_faucet.go
+1
-1
module_nginx.go
cmd/puppeth/module_nginx.go
+1
-1
module_node.go
cmd/puppeth/module_node.go
+1
-1
module_wallet.go
cmd/puppeth/module_wallet.go
+1
-1
wizard_dashboard.go
cmd/puppeth/wizard_dashboard.go
+2
-3
wizard_ethstats.go
cmd/puppeth/wizard_ethstats.go
+2
-3
wizard_explorer.go
cmd/puppeth/wizard_explorer.go
+2
-3
wizard_faucet.go
cmd/puppeth/wizard_faucet.go
+2
-3
wizard_node.go
cmd/puppeth/wizard_node.go
+2
-3
wizard_wallet.go
cmd/puppeth/wizard_wallet.go
+2
-3
No files found.
cmd/puppeth/module_dashboard.go
View file @
a3a2c6b0
...
...
@@ -696,7 +696,7 @@ type dashboardInfos struct {
faucet
string
}
// Report converts the typed struct into a plain string->string map, co
tn
aining
// Report converts the typed struct into a plain string->string map, co
nt
aining
// most - but not all - fields for reporting to the user.
func
(
info
*
dashboardInfos
)
Report
()
map
[
string
]
string
{
return
map
[
string
]
string
{
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/module_ethstats.go
View file @
a3a2c6b0
...
...
@@ -115,7 +115,7 @@ type ethstatsInfos struct {
banned
[]
string
}
// Report converts the typed struct into a plain string->string map, co
tn
aining
// Report converts the typed struct into a plain string->string map, co
nt
aining
// most - but not all - fields for reporting to the user.
func
(
info
*
ethstatsInfos
)
Report
()
map
[
string
]
string
{
return
map
[
string
]
string
{
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/module_explorer.go
View file @
a3a2c6b0
...
...
@@ -155,7 +155,7 @@ type explorerInfos struct {
webPort
int
}
// Report converts the typed struct into a plain string->string map, co
tn
aining
// Report converts the typed struct into a plain string->string map, co
nt
aining
// most - but not all - fields for reporting to the user.
func
(
info
*
explorerInfos
)
Report
()
map
[
string
]
string
{
report
:=
map
[
string
]
string
{
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/module_faucet.go
View file @
a3a2c6b0
...
...
@@ -150,7 +150,7 @@ type faucetInfos struct {
captchaSecret
string
}
// Report converts the typed struct into a plain string->string map, co
tn
aining
// Report converts the typed struct into a plain string->string map, co
nt
aining
// most - but not all - fields for reporting to the user.
func
(
info
*
faucetInfos
)
Report
()
map
[
string
]
string
{
report
:=
map
[
string
]
string
{
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/module_nginx.go
View file @
a3a2c6b0
...
...
@@ -92,7 +92,7 @@ type nginxInfos struct {
port
int
}
// Report converts the typed struct into a plain string->string map, co
tn
aining
// Report converts the typed struct into a plain string->string map, co
nt
aining
// most - but not all - fields for reporting to the user.
func
(
info
*
nginxInfos
)
Report
()
map
[
string
]
string
{
return
map
[
string
]
string
{
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/module_node.go
View file @
a3a2c6b0
...
...
@@ -170,7 +170,7 @@ type nodeInfos struct {
gasPrice
float64
}
// Report converts the typed struct into a plain string->string map, co
tn
aining
// Report converts the typed struct into a plain string->string map, co
nt
aining
// most - but not all - fields for reporting to the user.
func
(
info
*
nodeInfos
)
Report
()
map
[
string
]
string
{
report
:=
map
[
string
]
string
{
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/module_wallet.go
View file @
a3a2c6b0
...
...
@@ -138,7 +138,7 @@ type walletInfos struct {
webPort
int
}
// Report converts the typed struct into a plain string->string map, co
tn
aining
// Report converts the typed struct into a plain string->string map, co
nt
aining
// most - but not all - fields for reporting to the user.
func
(
info
*
walletInfos
)
Report
()
map
[
string
]
string
{
report
:=
map
[
string
]
string
{
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/wizard_dashboard.go
View file @
a3a2c6b0
...
...
@@ -33,16 +33,15 @@ func (w *wizard) deployDashboard() {
client
:=
w
.
servers
[
server
]
// Retrieve any active dashboard configurations from the server
existed
:=
true
infos
,
err
:=
checkDashboard
(
client
,
w
.
network
)
if
err
!=
nil
{
infos
=
&
dashboardInfos
{
port
:
80
,
host
:
client
.
server
,
}
existed
=
false
}
existed
:=
err
==
nil
// Figure out which port to listen on
fmt
.
Println
()
fmt
.
Printf
(
"Which port should the dashboard listen on? (default = %d)
\n
"
,
infos
.
port
)
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/wizard_ethstats.go
View file @
a3a2c6b0
...
...
@@ -34,8 +34,6 @@ func (w *wizard) deployEthstats() {
client
:=
w
.
servers
[
server
]
// Retrieve any active ethstats configurations from the server
existed
:=
true
infos
,
err
:=
checkEthstats
(
client
,
w
.
network
)
if
err
!=
nil
{
infos
=
&
ethstatsInfos
{
...
...
@@ -43,8 +41,9 @@ func (w *wizard) deployEthstats() {
host
:
client
.
server
,
secret
:
""
,
}
existed
=
false
}
existed
:=
err
==
nil
// Figure out which port to listen on
fmt
.
Println
()
fmt
.
Printf
(
"Which port should ethstats listen on? (default = %d)
\n
"
,
infos
.
port
)
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/wizard_explorer.go
View file @
a3a2c6b0
...
...
@@ -47,15 +47,14 @@ func (w *wizard) deployExplorer() {
client
:=
w
.
servers
[
server
]
// Retrieve any active node configurations from the server
existed
:=
true
infos
,
err
:=
checkExplorer
(
client
,
w
.
network
)
if
err
!=
nil
{
infos
=
&
explorerInfos
{
nodePort
:
30303
,
webPort
:
80
,
webHost
:
client
.
server
,
}
existed
=
false
}
existed
:=
err
==
nil
chainspec
,
err
:=
newParityChainSpec
(
w
.
network
,
w
.
conf
.
Genesis
,
w
.
conf
.
bootFull
)
if
err
!=
nil
{
log
.
Error
(
"Failed to create chain spec for explorer"
,
"err"
,
err
)
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/wizard_faucet.go
View file @
a3a2c6b0
...
...
@@ -35,8 +35,6 @@ func (w *wizard) deployFaucet() {
client
:=
w
.
servers
[
server
]
// Retrieve any active faucet configurations from the server
existed
:=
true
infos
,
err
:=
checkFaucet
(
client
,
w
.
network
)
if
err
!=
nil
{
infos
=
&
faucetInfos
{
...
...
@@ -47,8 +45,9 @@ func (w *wizard) deployFaucet() {
minutes
:
1440
,
tiers
:
3
,
}
existed
=
false
}
existed
:=
err
==
nil
infos
.
node
.
genesis
,
_
=
json
.
MarshalIndent
(
w
.
conf
.
Genesis
,
""
,
" "
)
infos
.
node
.
network
=
w
.
conf
.
Genesis
.
Config
.
ChainId
.
Int64
()
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/wizard_node.go
View file @
a3a2c6b0
...
...
@@ -45,8 +45,6 @@ func (w *wizard) deployNode(boot bool) {
client
:=
w
.
servers
[
server
]
// Retrieve any active node configurations from the server
existed
:=
true
infos
,
err
:=
checkNode
(
client
,
w
.
network
,
boot
)
if
err
!=
nil
{
if
boot
{
...
...
@@ -54,8 +52,9 @@ func (w *wizard) deployNode(boot bool) {
}
else
{
infos
=
&
nodeInfos
{
portFull
:
30303
,
peersTotal
:
50
,
peersLight
:
0
,
gasTarget
:
4.7
,
gasPrice
:
18
}
}
existed
=
false
}
existed
:=
err
==
nil
infos
.
genesis
,
_
=
json
.
MarshalIndent
(
w
.
conf
.
Genesis
,
""
,
" "
)
infos
.
network
=
w
.
conf
.
Genesis
.
Config
.
ChainId
.
Int64
()
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/wizard_wallet.go
View file @
a3a2c6b0
...
...
@@ -43,15 +43,14 @@ func (w *wizard) deployWallet() {
client
:=
w
.
servers
[
server
]
// Retrieve any active node configurations from the server
existed
:=
true
infos
,
err
:=
checkWallet
(
client
,
w
.
network
)
if
err
!=
nil
{
infos
=
&
walletInfos
{
nodePort
:
30303
,
rpcPort
:
8545
,
webPort
:
80
,
webHost
:
client
.
server
,
}
existed
=
false
}
existed
:=
err
==
nil
infos
.
genesis
,
_
=
json
.
MarshalIndent
(
w
.
conf
.
Genesis
,
""
,
" "
)
infos
.
network
=
w
.
conf
.
Genesis
.
Config
.
ChainId
.
Int64
()
...
...
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