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

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
Pavel Karpy 2023-03-30 18:24:37 +03:00
parent f09ee27af9
commit aa92f977ef

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