forked from TrueCloudLab/frostfs-node
[#979] ir/subnet: Register parser and handler of RemoveNode event
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
1b698867a7
commit
973e50ad72
1 changed files with 4 additions and 0 deletions
|
@ -176,6 +176,8 @@ func (np *Processor) ListenerNotificationParsers() []event.NotificationParserInf
|
||||||
p.SetType(removeNodeNotification)
|
p.SetType(removeNodeNotification)
|
||||||
p.SetParser(subnetEvent.ParseRemoveNode)
|
p.SetParser(subnetEvent.ParseRemoveNode)
|
||||||
|
|
||||||
|
parsers = append(parsers, p)
|
||||||
|
|
||||||
p.SetScriptHash(np.netmapClient.ContractAddress())
|
p.SetScriptHash(np.netmapClient.ContractAddress())
|
||||||
|
|
||||||
// new epoch event
|
// new epoch event
|
||||||
|
@ -211,6 +213,8 @@ func (np *Processor) ListenerNotificationHandlers() []event.NotificationHandlerI
|
||||||
i.SetType(removeNodeNotification)
|
i.SetType(removeNodeNotification)
|
||||||
i.SetHandler(np.handleRemoveNode)
|
i.SetHandler(np.handleRemoveNode)
|
||||||
|
|
||||||
|
handlers = append(handlers, i)
|
||||||
|
|
||||||
i.SetScriptHash(np.netmapClient.ContractAddress())
|
i.SetScriptHash(np.netmapClient.ContractAddress())
|
||||||
|
|
||||||
// new epoch handler
|
// new epoch handler
|
||||||
|
|
Loading…
Reference in a new issue