From e71b6582b5be024778aa937e5b20d717e35b7726 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 29 Mar 2023 17:55:11 +0300 Subject: [PATCH] [#181] ir: Do not deposit notary GAS by non-alphabet nodes Signed-off-by: Pavel Karpy --- CHANGELOG.md | 1 + pkg/innerring/innerring.go | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc2f4adad..801ea85dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ Changelog for FrostFS Node - Adding of public key for nns group `group.frostfs` at init step (#130) - Iterating over just removed files by FSTree (#98) - Parts of a locked object could not be removed anymore (#141) +- Non-alphabet nodes do not claim notary deposits (#181) ### Removed ### Updated diff --git a/pkg/innerring/innerring.go b/pkg/innerring/innerring.go index 1c2d797ef..54772175e 100644 --- a/pkg/innerring/innerring.go +++ b/pkg/innerring/innerring.go @@ -179,7 +179,9 @@ func (s *Server) Start(ctx context.Context, intError chan<- error) (err error) { return err } - if !s.mainNotaryConfig.disabled { + isAlpha := s.IsAlphabet() + + if isAlpha && !s.mainNotaryConfig.disabled { err = s.initNotary(ctx, s.depositMainNotary, s.awaitMainNotaryDeposit, @@ -190,7 +192,7 @@ func (s *Server) Start(ctx context.Context, intError chan<- error) (err error) { } } - if !s.sideNotaryConfig.disabled { + if isAlpha && !s.sideNotaryConfig.disabled { err = s.initNotary(ctx, s.depositSideNotary, s.awaitSideNotaryDeposit,