【发布时间】:2018-03-02 11:38:05
【问题描述】:
我们使用搁浅 (https://ipfs.io/docs/install/) 创建了 2 个节点 两者都连接到公共网络并且工作正常。 现在我们正在尝试使用这两个节点创建一个私有网络,如下所述,但是两个节点上的数据没有同步。 https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#private-networks
下面是我们启动守护进程时的响应
$ipfs daemon --enable-pubsub-experiment
Initializing daemon...
Adjusting current ulimit to 2048...
Successfully raised file descriptor limit to 2048.
Swarm is limited to private network of peers with the swarm key
Swarm key fingerprint: 5c9869c16230b2b24f66f89a519043d1
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
Gateway (readonly) server listening on /ip4/1127.0.0.1/tcp/8080
Daemon is ready
【问题讨论】:
-
通过在守护进程启动期间将其他节点添加为 Bootstrap 节点解决了问题。
-
将此添加为一个不错的答案。回答您自己的问题是完全可以接受的!