Skip to content

Commit

Permalink
ir: Change node validation process order
Browse files Browse the repository at this point in the history
Validate SN availability before attributes updating. Bootstrap process requires
attributes appending, so a node just can not provide the full attributes list
and, therefore, can not respond with the same NodeInfo that was gotten from the
`locode` validator.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
  • Loading branch information
carpawell committed Sep 8, 2023
1 parent 9012d5f commit 4c55307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/innerring/innerring.go
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,8 @@ func New(ctx context.Context, log *zap.Logger, cfg *viper.Viper, errChan chan<-
NodeValidator: nodevalidator.New(
&netMapCandidateStateValidator,
addrvalidator.New(),
locodeValidator,
availabilityvalidator.New(),
locodeValidator,
),
NodeStateSettings: netSettings,
})
Expand Down

0 comments on commit 4c55307

Please sign in to comment.