From db5321309d073a0869a271897d866357afa30f60 Mon Sep 17 00:00:00 2001
From: Pavel Karpy
Date: Fri, 31 Mar 2023 12:52:16 +0300
Subject: [PATCH] [#181] ir: Do not sync the Alphabet by non-alphabet nodes
Signed-off-by: Pavel Karpy
---
pkg/innerring/initialization.go | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pkg/innerring/initialization.go b/pkg/innerring/initialization.go
index 31a1bcd60..5a8fdcc3d 100644
--- a/pkg/innerring/initialization.go
+++ b/pkg/innerring/initialization.go
@@ -10,7 +10,7 @@ import (
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/innerring/processors/audit"
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/innerring/processors/balance"
cont "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/innerring/processors/container"
- frostfs "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/innerring/processors/frostfs"
+ "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/innerring/processors/frostfs"
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/innerring/processors/governance"
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap"
nodevalidator "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap/nodevalidation"
@@ -90,7 +90,9 @@ func (s *Server) initNetmapProcessor(cfg *viper.Viper,
AuditSettlementsHandler: s.onlyAlphabetEventHandler(
settlementProcessor.HandleAuditEvent,
),
- AlphabetSyncHandler: alphaSync,
+ AlphabetSyncHandler: s.onlyAlphabetEventHandler(
+ alphaSync,
+ ),
NodeValidator: nodevalidator.New(
&netMapCandidateStateValidator,
addrvalidator.New(),