mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-10-31 01:05:08 +03:00 
			
		
		
		
	Export version parts
This commit is contained in:
		
							parent
							
								
									47d34b810b
								
							
						
					
					
						commit
						66bbd1c344
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -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, | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neil Alexander
						Neil Alexander