From 44d5412e10dd1448c8a41db3768534b8b4b79fd0 Mon Sep 17 00:00:00 2001
From: Pavel Karpy
Date: Fri, 31 Mar 2023 12:51:12 +0300
Subject: [PATCH] [#181] ir: Do not deposit notary GAS by non-alphabet nodes
Signed-off-by: Pavel Karpy
---
pkg/innerring/innerring.go | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/pkg/innerring/innerring.go b/pkg/innerring/innerring.go
index 063d0f7cd..38023932f 100644
--- a/pkg/innerring/innerring.go
+++ b/pkg/innerring/innerring.go
@@ -149,14 +149,16 @@ func (s *Server) Start(ctx context.Context, intError chan<- error) (err error) {
return err
}
- err = s.initMainNotary(ctx)
- if err != nil {
- return err
- }
+ if s.IsAlphabet() {
+ err = s.initMainNotary(ctx)
+ if err != nil {
+ return err
+ }
- err = s.initSideNotary(ctx)
- if err != nil {
- return err
+ err = s.initSideNotary(ctx)
+ if err != nil {
+ return err
+ }
}
prm := governance.VoteValidatorPrm{}