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

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/fyrchik/container-panic
Leonard Lyubich 2021-12-01 19:19:22 +03:00 committed by LeL
parent 1b698867a7
commit 973e50ad72
1 changed files with 4 additions and 0 deletions

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