forked from TrueCloudLab/frostfs-node
[#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:
parent
f09ee27af9
commit
aa92f977ef
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,12 @@ func (p *Processor) HandleAuditEvent(e event.Event) {
|
||||||
|
|
||||||
epoch := ev.Epoch()
|
epoch := ev.Epoch()
|
||||||
|
|
||||||
|
if !p.state.IsAlphabet() {
|
||||||
|
p.log.Info("non alphabet mode, ignore audit payments")
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
log := &logger.Logger{Logger: p.log.With(
|
log := &logger.Logger{Logger: p.log.With(
|
||||||
zap.Uint64("epoch", epoch),
|
zap.Uint64("epoch", epoch),
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue