forked from TrueCloudLab/frostfs-node
[#973] ir: Listen and process Put/Delete events of Subnet contract
Define notification events, implement parsers. Add morph client of Subnet contract. Listen, verify and approve events in Inner Ring app. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
214c2bd0cb
commit
41eaa1e246
22 changed files with 1278 additions and 12 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
timerEvent "github.com/nspcc-dev/neofs-node/pkg/innerring/timers"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/morph/event"
|
||||
netmapEvent "github.com/nspcc-dev/neofs-node/pkg/morph/event/netmap"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/morph/event/subnet"
|
||||
subnetevents "github.com/nspcc-dev/neofs-node/pkg/morph/event/subnet"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
@ -102,7 +102,7 @@ func (np *Processor) handleCleanupTick(ev event.Event) {
|
|||
}
|
||||
|
||||
func (np *Processor) handleRemoveNode(ev event.Event) {
|
||||
removeNode := ev.(subnet.RemoveNode)
|
||||
removeNode := ev.(subnetevents.RemoveNode)
|
||||
|
||||
np.log.Info("notification",
|
||||
zap.String("type", "remove node from subnet"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue