Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
b4463d2c
提交
b4463d2c
authored
10月 16, 2017
作者:
Jeromy Johnson
提交者:
GitHub
10月 16, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4307 from ipfs/fix/remove-rest-of-supernode
remove the rest of the supernode code
上级
786d81ed
603ecf62
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
20 行增加
和
49 行删除
+20
-49
config.md
docs/config.md
+0
-4
ipfs-completion.bash
misc/completion/ipfs-completion.bash
+1
-1
config.go
repo/config/config.go
+10
-11
supernode.go
repo/config/supernode.go
+0
-33
t0061-daemon-opts.sh
test/sharness/t0061-daemon-opts.sh
+9
-0
没有找到文件。
docs/config.md
浏览文件 @
b4463d2c
...
@@ -16,7 +16,6 @@ on a running daemon do not read the config file at runtime.
...
@@ -16,7 +16,6 @@ on a running daemon do not read the config file at runtime.
-
[
`Ipns`
](
#ipns
)
-
[
`Ipns`
](
#ipns
)
-
[
`Mounts`
](
#mounts
)
-
[
`Mounts`
](
#mounts
)
-
[
`Reprovider`
](
#reprovider
)
-
[
`Reprovider`
](
#reprovider
)
-
[
`SupernodeRouting`
](
#supernoderouting
)
-
[
`Swarm`
](
#swarm
)
-
[
`Swarm`
](
#swarm
)
## `Addresses`
## `Addresses`
...
@@ -242,9 +241,6 @@ Tells reprovider what should be announced. Valid strategies are:
...
@@ -242,9 +241,6 @@ Tells reprovider what should be announced. Valid strategies are:
-
"pinned" - only announce pinned data
-
"pinned" - only announce pinned data
-
"roots" - only announce directly pinned keys and root keys of recursive pins
-
"roots" - only announce directly pinned keys and root keys of recursive pins
## `SupernodeRouting`
Deprecated.
## `Swarm`
## `Swarm`
Options for configuring the swarm.
Options for configuring the swarm.
...
...
misc/completion/ipfs-completion.bash
浏览文件 @
b4463d2c
...
@@ -159,7 +159,7 @@ _ipfs_config_show()
...
@@ -159,7 +159,7 @@ _ipfs_config_show()
_ipfs_daemon
()
_ipfs_daemon
()
{
{
if
[[
${
prev
}
==
"--routing"
]]
;
then
if
[[
${
prev
}
==
"--routing"
]]
;
then
_ipfs_comp
"dht
supernod
e"
# TODO: Solve autocomplete bug for "="
_ipfs_comp
"dht
dhtclient non
e"
# TODO: Solve autocomplete bug for "="
elif
[[
${
prev
}
==
"--mount-ipfs"
]]
||
[[
${
prev
}
==
"--mount-ipns"
]]
||
[[
${
prev
}
==
"="
]]
;
then
elif
[[
${
prev
}
==
"--mount-ipfs"
]]
||
[[
${
prev
}
==
"--mount-ipns"
]]
||
[[
${
prev
}
==
"="
]]
;
then
_ipfs_filesystem_complete
_ipfs_filesystem_complete
elif
[[
${
word
}
==
-
*
]]
;
then
elif
[[
${
word
}
==
-
*
]]
;
then
...
...
repo/config/config.go
浏览文件 @
b4463d2c
...
@@ -14,17 +14,16 @@ import (
...
@@ -14,17 +14,16 @@ import (
// Config is used to load ipfs config files.
// Config is used to load ipfs config files.
type
Config
struct
{
type
Config
struct
{
Identity
Identity
// local node's peer identity
Identity
Identity
// local node's peer identity
Datastore
Datastore
// local node's storage
Datastore
Datastore
// local node's storage
Addresses
Addresses
// local node's addresses
Addresses
Addresses
// local node's addresses
Mounts
Mounts
// local node's mount points
Mounts
Mounts
// local node's mount points
Discovery
Discovery
// local node's discovery mechanisms
Discovery
Discovery
// local node's discovery mechanisms
Ipns
Ipns
// Ipns settings
Ipns
Ipns
// Ipns settings
Bootstrap
[]
string
// local nodes's bootstrap peer addresses
Bootstrap
[]
string
// local nodes's bootstrap peer addresses
Gateway
Gateway
// local node's gateway server options
Gateway
Gateway
// local node's gateway server options
SupernodeRouting
SupernodeClientConfig
// local node's routing servers (if SupernodeRouting enabled)
API
API
// local node's API settings
API
API
// local node's API settings
Swarm
SwarmConfig
Swarm
SwarmConfig
Reprovider
Reprovider
Reprovider
Reprovider
Experimental
Experiments
Experimental
Experiments
...
...
repo/config/supernode.go
deleted
100644 → 0
浏览文件 @
786d81ed
package
config
import
"github.com/ipfs/go-ipfs/thirdparty/ipfsaddr"
// TODO replace with final servers before merge
// TODO rename
type
SupernodeClientConfig
struct
{
Servers
[]
string
}
var
DefaultSNRServers
=
[]
string
{
"/ip4/104.236.176.52/tcp/4002/ipfs/QmXdb7tWTxdFEQEFgWBqkuYSrZd3mXrC7HxkD4krGNYx2U"
,
"/ip4/104.236.179.241/tcp/4002/ipfs/QmVRqViDByUxjUMoPnjurjKvZhaEMFDtK35FJXHAM4Lkj6"
,
"/ip4/104.236.151.122/tcp/4002/ipfs/QmSZwGx8Tn8tmcM4PtDJaMeUQNRhNFdBLVGPzRiNaRJtFH"
,
"/ip4/162.243.248.213/tcp/4002/ipfs/QmbHVEEepCi7rn7VL7Exxpd2Ci9NNB6ifvqwhsrbRMgQFP"
,
"/ip4/128.199.219.111/tcp/4002/ipfs/Qmb3brdCYmKG1ycwqCbo6LUwWxTuo3FisnJV2yir7oN92R"
,
"/ip4/104.236.76.40/tcp/4002/ipfs/QmdRBCV8Cz2dGhoKLkD3YjPwVFECmqADQkx5ZteF2c6Fy4"
,
"/ip4/178.62.158.247/tcp/4002/ipfs/QmUdiMPci7YoEUBkyFZAh2pAbjqcPr7LezyiPD2artLw3v"
,
"/ip4/178.62.61.185/tcp/4002/ipfs/QmVw6fGNqBixZE4bewRLT2VXX7fAHUHs8JyidDiJ1P7RUN"
,
}
func
(
gcr
*
SupernodeClientConfig
)
ServerIPFSAddrs
()
([]
ipfsaddr
.
IPFSAddr
,
error
)
{
var
addrs
[]
ipfsaddr
.
IPFSAddr
for
_
,
server
:=
range
gcr
.
Servers
{
addr
,
err
:=
ipfsaddr
.
ParseString
(
server
)
if
err
!=
nil
{
return
nil
,
err
}
addrs
=
append
(
addrs
,
addr
)
}
return
addrs
,
nil
}
test/sharness/t0061-daemon-opts.sh
浏览文件 @
b4463d2c
...
@@ -49,4 +49,13 @@ test_expect_success 'output contains info about dht option' '
...
@@ -49,4 +49,13 @@ test_expect_success 'output contains info about dht option' '
test_fsh cat daemon_output
test_fsh cat daemon_output
'
'
test_expect_success
'daemon should not start with supernode dht opt'
'
test_must_fail ipfs daemon --routing=supernode > daemon_output2 2>&1
'
test_expect_success
'output contains info about supernode dht option'
'
grep "supernode routing was never fully implemented" daemon_output2 ||
test_fsh cat daemon_output2
'
test_done
test_done
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论