[#447] innerring: Use governance processor in inner ring

Network map processors creates sync event once per epoch.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-03-25 16:24:44 +03:00 committed by Alex Vanin
parent d0d1731af7
commit 3fe5962e92
4 changed files with 35 additions and 2 deletions

View file

@ -3,6 +3,7 @@ package netmap
import (
"github.com/nspcc-dev/neofs-node/pkg/innerring/invoke"
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/audit"
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/governance"
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/settlement"
"go.uber.org/zap"
)
@ -38,6 +39,7 @@ func (np *Processor) processNewEpoch(epoch uint64) {
np.handleCleanupTick(netmapCleanupTick{epoch: epoch})
np.handleNewAudit(audit.NewAuditStartEvent(epoch))
np.handleAuditSettlements(settlement.NewAuditEvent(epoch))
np.handleAlphabetSync(governance.NewSyncEvent())
}
// Process new epoch tick by invoking new epoch method in network map contract.