From ef57ba3fecc6f0d0fa6adef62ffd1568f310860f Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 30 Nov 2021 20:32:52 +0300 Subject: [PATCH] [#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 --- pkg/innerring/subnet.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/innerring/subnet.go b/pkg/innerring/subnet.go index 40c86452b..30541dd48 100644 --- a/pkg/innerring/subnet.go +++ b/pkg/innerring/subnet.go @@ -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() {