capability: specify reserved type range

Follow https://github.com/neo-project/neo/pull/3639.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
Roman Khimov 2024-12-27 12:16:48 +03:00
parent e0338b7ed0
commit 47b679341b
2 changed files with 5 additions and 0 deletions

View file

@ -44,6 +44,7 @@ func (cs Capabilities) checkUniqueCapabilities() error {
return err return err
} }
isWS = true isWS = true
default: /* OK to have duplicates */
} }
} }
return nil return nil

View file

@ -10,4 +10,8 @@ const (
WSServer Type = 0x02 WSServer Type = 0x02
// FullNode represents a node that has complete current state. // FullNode represents a node that has complete current state.
FullNode Type = 0x10 FullNode Type = 0x10
// 0xf0-0xff are reserved for private experiments.
ReservedFirst Type = 0xf0
ReservedLast Type = 0xff
) )