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

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
Pavel Karpy 2023-03-31 12:51:12 +03:00
parent ed28ce24cd
commit 44d5412e10

View file

@ -149,14 +149,16 @@ func (s *Server) Start(ctx context.Context, intError chan<- error) (err error) {
return err return err
} }
err = s.initMainNotary(ctx) if s.IsAlphabet() {
if err != nil { err = s.initMainNotary(ctx)
return err if err != nil {
} return err
}
err = s.initSideNotary(ctx) err = s.initSideNotary(ctx)
if err != nil { if err != nil {
return err return err
}
} }
prm := governance.VoteValidatorPrm{} prm := governance.VoteValidatorPrm{}