1. IPFS点滴资讯首页
  2. 官方更新
  3. IPFS

Migrating ipfs.io from go-ipfs 0.3.x to 0.4.0

Good news everyone! We’ll soon release go-ipfs 0.4.0, which contains lots of great changes and enhancements. An upcoming post will detail the improvements of 0.4.0. This post is about important things to be aware of when upgrading. Users who already rely on go-ipfs or the ipfs.io services should pay special attention.

There are breaking changes which prevent 0.4.x nodes from communicating with 0.3.x nodes. We know breaking changes are painful. We avoid them. In this case, the improvement makes IPFS substantially more upgradable. It’s one of those things that “should’ve been different” from the start. Having the freedom to improve the core protocol is why IPFS is still in alpha phase.

Nevertheless, we take service disruption very seriously even in these early days. We know thousands of developers use IPFS, and hundreds of thousands of people rely on IPFS links to our gateway. So we planned a smooth upgrade path.

The breaking change is at the wire protocol level, which means there will be, and already are, two separate networks. We’ll call these networks v03x and v04x. IPFS nodes built from the master branch are already part of v04x. The Docker image ipfs/go-ipfs is built from master (until 0.4.0 is released) and thus also part of v04x.

ipfs.io provides two essential services to the community, which are affected by this: the public HTTP-to-IPFS gateway and the default bootstrappers. We’ll continue to support them for the v03x network until the end of April 2016.

Please note that we won’t support 0.3.x with patches or new features. All development effort is directed towards 0.4.0, and you should update as soon as possible.

How do I update go-ipfs to 0.4.0?

Until we release 0.4.0, you can update by building from source.

After the release, you can:

Please note that installation with go get does not work at this time. We are experimenting with gx, the new IPFS-based package manager.

The public gateways at ipfs.io

For the time being, https://ipfs.io uses both v03x and v04x to service requests. Content available in either network will be served just fine. Whichever responds successfully first (2xx or 3xx status code), gets to serve its content. The other response is discarded. If the first response is not successful (4xx/5xx, connection errors), it is discarded and the second response is served, regardless of its status code.

We’re using the multireq proxy to accomplish this multiplexing behaviour. multireq is a new tool, so if you notice any weirdness with gateway requests, please let us know.

If you want to target a specific network, use v03x.ipfs.io or v04x.ipfs.io. These domain names will stay around as long as the respective network is supported by the public gateway.

All of the above also applies to the /api endpoint (the readonly API), which is part of the gateway.

Expect the v03x gateway to be supported until the end of April 2016. After that day, ipfs.io will be served by v04x exclusively, and v03x.ipfs.io will no longer work.

Solarnet: the default bootstrappers

We call the 8 bootstrap nodes in go-ipfs’s default config the default bootstrappers. Their PeerIDs start with QmSoL (for Solarnet), and all of them use /tcp/4001 and/or /udp/4002/utp. Use ipfs bootstrap to see or modify the bootstrappers currently used by your IPFS node.

In order to balance the default bootstrappers over v03x and v04x, a few of them bind v04x to these ports, and a few bind v03x. The respective other network is bound to /tcp/14001 and /udp/14002/utp. This means that all 8 hosts run bootstrappers for both networks, but are available as default bootstrappers only to one.

We’ll gradually shift the v03x/v04x ratio to v04x. Expect at least two v03x bootstrappers to be supported until the end of April 2016.

How does this affect me?

Check which version of go-ipfs you are running: ipfs version

If you rely on the public gateways, we ask you to please upgrade to 0.4.0 as soon as you can. You can subscribe to this issue to be notified when 0.4.0 is released.

If you’re running an 0.3.x node, it won’t be able to communicate with any node which has updated to 0.4.x, let alone exchange data. You can access data added by 0.4.0 nodes using the public gateway. Likewise, data added by your 0.3.x node is still available on the public gateway.

If you’re running an 0.4.0 node, all is well in the world. You don’t need to do anything.

Thank you for bearing with this important change. We seek to provide a smooth transition for everyone, and wish we didn’t have to bother you with this at all.



点对点科技深耘IPFS与Filecoin技术,坚持区块链技术改变未来的信念。点对点 IPFS 数据中心是目前国内技术领先,性价比高、保障优的投资标的。自建杭州数据中心,合作数据中心分布于上海、宁波、河北、香港、斯德哥尔摩(瑞典)等地。点对点数据中心具有优秀的硬件配置与目前国内优质的网络节点资源。点对点科技力求将IPFS爱好者升级为IPFS领军者与受益者,让IPFS颠覆传统互联网,共同开启 WEB 3.0时代。


Filecoin测试网二阶段昨日重启,点对点出块第一! | 点滴资讯



电子邮件地址不会被公开。 必填项已用*标注