From aa92f977ef88addc3de6f7814a79592ba79011a9 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Thu, 30 Mar 2023 18:24:37 +0300 Subject: [PATCH] [#181] ir: Do not pay for audit by non-alphabet nodes Signed-off-by: Pavel Karpy --- pkg/innerring/processors/settlement/calls.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/innerring/processors/settlement/calls.go b/pkg/innerring/processors/settlement/calls.go index b4f44543..33191662 100644 --- a/pkg/innerring/processors/settlement/calls.go +++ b/pkg/innerring/processors/settlement/calls.go @@ -13,6 +13,12 @@ func (p *Processor) HandleAuditEvent(e event.Event) { epoch := ev.Epoch() + if !p.state.IsAlphabet() { + p.log.Info("non alphabet mode, ignore audit payments") + + return + } + log := &logger.Logger{Logger: p.log.With( zap.Uint64("epoch", epoch), )}