From 7b3897253c7bc50e99fc86b80f860dcd60c8b3a5 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 18 Jun 2021 13:42:03 +0300 Subject: [PATCH] [#622] pkg/innerring: Add multiaddress validation Start using multiaddress validation in netmap processor. Signed-off-by: Pavel Karpy --- pkg/innerring/innerring.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/innerring/innerring.go b/pkg/innerring/innerring.go index f8e6076a..2b455d54 100644 --- a/pkg/innerring/innerring.go +++ b/pkg/innerring/innerring.go @@ -20,6 +20,8 @@ import ( "github.com/nspcc-dev/neofs-node/pkg/innerring/processors/governance" "github.com/nspcc-dev/neofs-node/pkg/innerring/processors/neofs" "github.com/nspcc-dev/neofs-node/pkg/innerring/processors/netmap" + nodevalidator "github.com/nspcc-dev/neofs-node/pkg/innerring/processors/netmap/nodevalidation" + addrvalidator "github.com/nspcc-dev/neofs-node/pkg/innerring/processors/netmap/nodevalidation/maddress" "github.com/nspcc-dev/neofs-node/pkg/innerring/processors/reputation" "github.com/nspcc-dev/neofs-node/pkg/innerring/processors/settlement" auditSettlement "github.com/nspcc-dev/neofs-node/pkg/innerring/processors/settlement/audit" @@ -570,7 +572,10 @@ func New(ctx context.Context, log *zap.Logger, cfg *viper.Viper) (*Server, error settlementProcessor.HandleAuditEvent, ), AlphabetSyncHandler: alphaSync, - NodeValidator: locodeValidator, + NodeValidator: nodevalidator.New( + addrvalidator.New(), + locodeValidator, + ), }) if err != nil { return nil, err