frostfs-node/pkg
Leonard Lyubich 8858840751 [#1796] ir/netmap: Allow to call AddPeer with ONLINE state only
In previous implementation Inner Ring allowed storage nodes with any
state to register in the network. According to the current design, only
nodes with ONLINE state are allowed to enter the network map.

Create new `state` sub-package of `nodevalidation` package of Inner Ring
application. Define `state.NetMapCandidateValidator` type and provide
`NodeValidator` interface required by the Inner Ring's processor of
`Netmap` contract's notification events. Embed new validator into the
one used by the Inner Ring application.

From now all `AddPeer` notifications with node state other than `ONLINE`
will be denied.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-10-05 11:41:49 +03:00
..
core [#1817] network: Allow to use network addresses from the iterator 2022-10-04 12:12:18 +03:00
innerring [#1796] ir/netmap: Allow to call AddPeer with ONLINE state only 2022-10-05 11:41:49 +03:00
local_object_storage [#1809] node: Do not boot up if metabase is outdated 2022-10-04 12:32:10 +03:00
metrics [#1658] metrics: Add object type label to the counters 2022-09-13 21:32:37 +04:00
morph [#1793] node: Serve NetmapService.NetmapSnapshot RPC 2022-09-27 09:03:17 +03:00
network [#1817] network: Allow to use network addresses from the iterator 2022-10-04 12:12:18 +03:00
services [#1817] network: Allow to use network addresses from the iterator 2022-10-04 12:12:18 +03:00
util [#1687] *: Perform go fmt using go v1.19 2022-08-22 18:59:57 +03:00