[#265] innerring: Generate new audit event

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-18 12:27:19 +03:00 committed by Alex Vanin
parent 8c4e033db3
commit 87e1252065
8 changed files with 158 additions and 1 deletions

View file

@ -2,6 +2,7 @@ package netmap
import (
"github.com/nspcc-dev/neofs-node/pkg/innerring/invoke"
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/audit"
"go.uber.org/zap"
)
@ -22,6 +23,7 @@ func (np *Processor) processNewEpoch(epoch uint64) {
np.netmapSnapshot.update(snapshot, epoch)
np.handleCleanupTick(netmapCleanupTick{epoch: epoch})
np.handleNewAudit(audit.NewAuditStartEvent(epoch))
}
// Process new epoch tick by invoking new epoch method in network map contract.