ax(node): replace prose comment with usage examples on IsProtocolVersionSupported

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 08:56:12 +01:00
parent f4dbfcc251
commit 28dfe3f31e
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -19,7 +19,8 @@ const (
// Used for version negotiation during handshake.
var SupportedProtocolVersions = []string{"1.0"}
// IsProtocolVersionSupported checks if a given version is supported.
// if node.IsProtocolVersionSupported(peerVersion) { proceed() }
// if !node.IsProtocolVersionSupported("2.0") { return errUnsupportedVersion }
func IsProtocolVersionSupported(version string) bool {
for _, supported := range SupportedProtocolVersions {
if supported == version {