From 66bbd1c344873e2e4b8ce2b3f56dae7f41e52bfc Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 31 May 2021 21:31:49 +0100 Subject: [PATCH] Export version parts --- src/core/version.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/version.go b/src/core/version.go index 15aedee7..706cbe23 100644 --- a/src/core/version.go +++ b/src/core/version.go @@ -7,8 +7,8 @@ package core import "crypto/ed25519" const ( - ProtocolMajorVersion uint64 = 0 // Major version number of the protocol. - ProtocolMinorVersion uint64 = 2 // Minor version number of the protocol. + ProtocolMajorVersion uint8 = 0 // Major 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. @@ -26,8 +26,8 @@ type version_metadata struct { func version_getBaseMetadata() version_metadata { return version_metadata{ meta: [4]byte{'m', 'e', 't', 'a'}, - ver: 0, - minorVer: 0, + ver: ProtocolMajorVersion, + minorVer: ProtocolMinorVersion, } }