Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
whqwjb
go-ethereum
提交
6d8e51ab
G
go-ethereum
项目概览
whqwjb
/
go-ethereum
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
go-ethereum
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
6d8e51ab
编写于
7月 07, 2020
作者:
G
gary rong
提交者:
GitHub
7月 06, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cmd, node: dump empty value config (#21296)
上级
6315b6fc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
11 deletion
+14
-11
cmd/utils/flags.go
cmd/utils/flags.go
+8
-5
node/config.go
node/config.go
+6
-6
未找到文件。
cmd/utils/flags.go
浏览文件 @
6d8e51ab
...
...
@@ -905,12 +905,15 @@ func setNAT(ctx *cli.Context, cfg *p2p.Config) {
// splitAndTrim splits input separated by a comma
// and trims excessive white space from the substrings.
func
splitAndTrim
(
input
string
)
[]
string
{
result
:=
strings
.
Split
(
input
,
","
)
for
i
,
r
:=
range
result
{
result
[
i
]
=
strings
.
TrimSpace
(
r
)
func
splitAndTrim
(
input
string
)
(
ret
[]
string
)
{
l
:=
strings
.
Split
(
input
,
","
)
for
_
,
r
:=
range
l
{
r
=
strings
.
TrimSpace
(
r
)
if
len
(
r
)
>
0
{
ret
=
append
(
ret
,
r
)
}
}
return
re
sul
t
return
ret
}
// setHTTP creates the HTTP RPC listener interface string from the set
...
...
node/config.go
浏览文件 @
6d8e51ab
...
...
@@ -102,11 +102,11 @@ type Config struct {
// a simple file name, it is placed inside the data directory (or on the root
// pipe path on Windows), whereas if it's a resolvable path name (absolute or
// relative), then that specific path is enforced. An empty path disables IPC.
IPCPath
string
`toml:",omitempty"`
IPCPath
string
// HTTPHost is the host interface on which to start the HTTP RPC server. If this
// field is empty, no HTTP API endpoint will be started.
HTTPHost
string
`toml:",omitempty"`
HTTPHost
string
// HTTPPort is the TCP port number on which to start the HTTP RPC server. The
// default zero value is/ valid and will pick a port number randomly (useful
...
...
@@ -130,7 +130,7 @@ type Config struct {
// HTTPModules is a list of API modules to expose via the HTTP RPC interface.
// If the module list is empty, all RPC API endpoints designated public will be
// exposed.
HTTPModules
[]
string
`toml:",omitempty"`
HTTPModules
[]
string
// HTTPTimeouts allows for customization of the timeout values used by the HTTP RPC
// interface.
...
...
@@ -138,7 +138,7 @@ type Config struct {
// WSHost is the host interface on which to start the websocket RPC server. If
// this field is empty, no websocket API endpoint will be started.
WSHost
string
`toml:",omitempty"`
WSHost
string
// WSPort is the TCP port number on which to start the websocket RPC server. The
// default zero value is/ valid and will pick a port number randomly (useful for
...
...
@@ -153,7 +153,7 @@ type Config struct {
// WSModules is a list of API modules to expose via the websocket RPC interface.
// If the module list is empty, all RPC API endpoints designated public will be
// exposed.
WSModules
[]
string
`toml:",omitempty"`
WSModules
[]
string
// WSExposeAll exposes all API modules via the WebSocket RPC interface rather
// than just the public ones.
...
...
@@ -164,7 +164,7 @@ type Config struct {
// GraphQLHost is the host interface on which to start the GraphQL server. If this
// field is empty, no GraphQL API endpoint will be started.
GraphQLHost
string
`toml:",omitempty"`
GraphQLHost
string
// GraphQLPort is the TCP port number on which to start the GraphQL server. The
// default zero value is/ valid and will pick a port number randomly (useful
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录