[#60] cmd/neofs-node: Implement primary network State instance

Define networkState structure and implement netmap.State interface on it.
Set epoch number on NewEpoch notification from chain. Provide
WithNetworkState option to Put service constructor.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-10-21 18:12:31 +03:00 committed by Alex Vanin
parent 16a5107ef1
commit a8481223d6
3 changed files with 29 additions and 0 deletions

View file

@ -163,6 +163,8 @@ type cfgNetmap struct {
parsers map[event.Type]event.Parser
subscribers map[event.Type][]event.Handler
state *networkState
}
type BootstrapType uint32