[#979] ir/subnet: Register parser and handler of RemoveNode event

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-12-01 19:19:22 +03:00 committed by LeL
parent 1b698867a7
commit 973e50ad72

View file

@ -176,6 +176,8 @@ func (np *Processor) ListenerNotificationParsers() []event.NotificationParserInf
p.SetType(removeNodeNotification)
p.SetParser(subnetEvent.ParseRemoveNode)
parsers = append(parsers, p)
p.SetScriptHash(np.netmapClient.ContractAddress())
// new epoch event
@ -211,6 +213,8 @@ func (np *Processor) ListenerNotificationHandlers() []event.NotificationHandlerI
i.SetType(removeNodeNotification)
i.SetHandler(np.handleRemoveNode)
handlers = append(handlers, i)
i.SetScriptHash(np.netmapClient.ContractAddress())
// new epoch handler