[#979] ir/subnet: Fix notary event name of subnet creation

Notary event name equals to the name of the method which throws the
event.

Define name const of notary subnet creation.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-11-30 20:32:52 +03:00 committed by LeL
parent ca2c6ad77f
commit ef57ba3fec

View file

@ -88,6 +88,8 @@ const (
subnetCreateEvName = "put"
// subnet removal
subnetRemoveEvName = "delete"
// subnet creation (notary)
notarySubnetCreateEvName = "Put"
)
// makes IR server to listen notifications of Subnet contract.
@ -134,7 +136,7 @@ func (s *Server) listenSubnet() {
}
// subnet creation
listenEvent(subnetCreateEvName, subnetevents.ParseNotaryPut, s.onlyAlphabetEventHandler(s.catchSubnetCreation))
listenEvent(notarySubnetCreateEvName, subnetevents.ParseNotaryPut, s.onlyAlphabetEventHandler(s.catchSubnetCreation))
}
func (s *Server) listenSubnetWithoutNotary() {