Export version parts

This commit is contained in:
Neil Alexander 2021-05-31 21:31:49 +01:00
parent 47d34b810b
commit 66bbd1c344

View file

@ -7,8 +7,8 @@ package core
import "crypto/ed25519" import "crypto/ed25519"
const ( const (
ProtocolMajorVersion uint64 = 0 // Major version number of the protocol. ProtocolMajorVersion uint8 = 0 // Major version number of the protocol.
ProtocolMinorVersion uint64 = 2 // Minor version number of the protocol. ProtocolMinorVersion uint8 = 0 // Minor version number of the protocol.
) )
// This is the version-specific metadata exchanged at the start of a connection. // This is the version-specific metadata exchanged at the start of a connection.
@ -26,8 +26,8 @@ type version_metadata struct {
func version_getBaseMetadata() version_metadata { func version_getBaseMetadata() version_metadata {
return version_metadata{ return version_metadata{
meta: [4]byte{'m', 'e', 't', 'a'}, meta: [4]byte{'m', 'e', 't', 'a'},
ver: 0, ver: ProtocolMajorVersion,
minorVer: 0, minorVer: ProtocolMinorVersion,
} }
} }