[#181] ir: Do not deposit notary GAS by non-alphabet nodes #186

Closed
carpawell wants to merge 1 commits from carpawell/frostfs-node:fix/IRs-do-not-do-deposits into master
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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,