c31571407e
The RPC endpoints no longer change much, but every minor release enforces that all peers in a Cluster must run on the same version. This was meant to allow greater flexibility when upgrading the RPC endpoints. Now we should not be in a situation that releasing a minor cluster version causes peers incompatibilities, even though nothing changes on the RPC side of things. Therefore we make 0.12 the RPC protocol version going forward and detach it from the actual cluster version from this point.
20 lines
669 B
Go
20 lines
669 B
Go
package version
|
|
|
|
import (
|
|
semver "github.com/blang/semver"
|
|
protocol "github.com/libp2p/go-libp2p-core/protocol"
|
|
)
|
|
|
|
// Version is the current cluster version.
|
|
var Version = semver.MustParse("0.12.1")
|
|
|
|
// RPCProtocol is protocol handler used to send libp2p-rpc messages between
|
|
// cluster peers. All peers in the cluster need to speak the same protocol
|
|
// version.
|
|
//
|
|
// The RPC Protocol is not linked to the IPFS Cluster version (though it once
|
|
// was). The protocol version will be updated as needed when breaking changes
|
|
// are introduced, though at this point we aim to minimize those as much as
|
|
// possible.
|
|
var RPCProtocol = protocol.ID("/ipfscluster/0.12/rpc")
|