[#181] ir: Do not pay for audit by non-alphabet nodes

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
support/v0.36
Pavel Karpy 2023-03-30 18:24:37 +03:00
parent f09ee27af9
commit aa92f977ef
1 changed files with 6 additions and 0 deletions

View File

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