diff --git a/cmd/frostfs-node/morph.go b/cmd/frostfs-node/morph.go index 23f323a2e..11563bf47 100644 --- a/cmd/frostfs-node/morph.go +++ b/cmd/frostfs-node/morph.go @@ -85,6 +85,12 @@ func initMorphComponents(ctx context.Context, c *cfg) { zap.Bool("sidechain_enabled", c.cfgMorph.notaryEnabled), ) + initNetmapSource(c) + + c.cfgMorph.inactivityTimeout = morphconfig.InactivityTimeout(c.appCfg) +} + +func initNetmapSource(c *cfg) { wrap, err := nmClient.NewFromMorph(c.cfgMorph.client, c.cfgNetmap.scriptHash, 0, nmClient.TryNotary()) fatalOnErr(err) @@ -105,9 +111,6 @@ func initMorphComponents(ctx context.Context, c *cfg) { // use RPC node as source of netmap (with caching) netmapSource = newCachedNetmapStorage(c.cfgNetmap.state, wrap) } - - c.cfgMorph.inactivityTimeout = morphconfig.InactivityTimeout(c.appCfg) - c.netMapSource = netmapSource c.cfgNetmap.wrapper = wrap }