[#979] ir/subnet: Fix notification event names
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
4d79195ede
commit
3550ed9fe4
1 changed files with 5 additions and 6 deletions
|
@ -85,11 +85,11 @@ func (s *Server) stopSubnet() {
|
||||||
// names of listened notification events from Subnet contract.
|
// names of listened notification events from Subnet contract.
|
||||||
const (
|
const (
|
||||||
// subnet creation
|
// subnet creation
|
||||||
subnetCreateEvName = "put"
|
subnetCreateEvName = "Put"
|
||||||
// subnet removal
|
// subnet removal
|
||||||
subnetRemoveEvName = "delete"
|
subnetRemoveEvName = "Delete"
|
||||||
// subnet creation (notary)
|
// subnet creation (notary)
|
||||||
notarySubnetCreateEvName = "Put"
|
notarySubnetCreateEvName = "put"
|
||||||
)
|
)
|
||||||
|
|
||||||
// makes IR server to listen notifications of Subnet contract.
|
// makes IR server to listen notifications of Subnet contract.
|
||||||
|
@ -100,11 +100,10 @@ const (
|
||||||
//
|
//
|
||||||
// Events (notary):
|
// Events (notary):
|
||||||
// * put (parser: subnetevents.ParseNotaryPut, handler: catchSubnetCreation);
|
// * put (parser: subnetevents.ParseNotaryPut, handler: catchSubnetCreation);
|
||||||
// * delete (parser: subnetevents.ParseNotaryDelete, handler: catchSubnetRemoval).
|
|
||||||
//
|
//
|
||||||
// Events (non-notary):
|
// Events (non-notary):
|
||||||
// * put (parser: subnetevents.ParsePut, handler: catchSubnetCreation);
|
// * Put (parser: subnetevents.ParsePut, handler: catchSubnetCreation);
|
||||||
// * delete (parser: subnetevents.ParseDelete, handler: catchSubnetCreation).
|
// * Delete (parser: subnetevents.ParseDelete, handler: catchSubnetCreation).
|
||||||
func (s *Server) listenSubnet() {
|
func (s *Server) listenSubnet() {
|
||||||
if s.sideNotaryConfig.disabled {
|
if s.sideNotaryConfig.disabled {
|
||||||
s.listenSubnetWithoutNotary()
|
s.listenSubnetWithoutNotary()
|
||||||
|
|
Loading…
Reference in a new issue