mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-02-07 05:33:51 +00:00
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:
parent
e0338b7ed0
commit
47b679341b
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue