[#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:
parent
ca2c6ad77f
commit
ef57ba3fec
1 changed files with 3 additions and 1 deletions
|
@ -88,6 +88,8 @@ const (
|
||||||
subnetCreateEvName = "put"
|
subnetCreateEvName = "put"
|
||||||
// subnet removal
|
// subnet removal
|
||||||
subnetRemoveEvName = "delete"
|
subnetRemoveEvName = "delete"
|
||||||
|
// subnet creation (notary)
|
||||||
|
notarySubnetCreateEvName = "Put"
|
||||||
)
|
)
|
||||||
|
|
||||||
// makes IR server to listen notifications of Subnet contract.
|
// makes IR server to listen notifications of Subnet contract.
|
||||||
|
@ -134,7 +136,7 @@ func (s *Server) listenSubnet() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// subnet creation
|
// subnet creation
|
||||||
listenEvent(subnetCreateEvName, subnetevents.ParseNotaryPut, s.onlyAlphabetEventHandler(s.catchSubnetCreation))
|
listenEvent(notarySubnetCreateEvName, subnetevents.ParseNotaryPut, s.onlyAlphabetEventHandler(s.catchSubnetCreation))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) listenSubnetWithoutNotary() {
|
func (s *Server) listenSubnetWithoutNotary() {
|
||||||
|
|
Loading…
Reference in a new issue