From e81081e0e0cd5436631201135a9a864800adf132 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 22 Mar 2022 11:48:00 +0300 Subject: [PATCH] [#1253] ir: Update AddPeer method name for notary enabled env `Register` was renamed to `AddPeerIR` for consistency with `UpdateState` changes in https://github.com/nspcc-dev/neofs-contract/pull/227 This is protocol breaking change for notary enabled environment. Luckily, there is no notary enabled environments anywhere except of neofs-dev-env, so we can do such thing. We should avoid such changes in the future, though. Signed-off-by: Alex Vanin --- pkg/innerring/processors/netmap/process_peers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/innerring/processors/netmap/process_peers.go b/pkg/innerring/processors/netmap/process_peers.go index 6306a65078..4777700b7b 100644 --- a/pkg/innerring/processors/netmap/process_peers.go +++ b/pkg/innerring/processors/netmap/process_peers.go @@ -88,10 +88,10 @@ func (np *Processor) processAddPeer(ev netmapEvent.AddPeer) { prm := netmapclient.AddPeerPrm{} prm.SetNodeInfo(nodeInfo) - // In notary environments we call Register method instead of AddPeer. + // In notary environments we call AddPeerIR method instead of AddPeer. // It differs from AddPeer only by name, so we can do this in the same form. // See https://github.com/nspcc-dev/neofs-contract/issues/154. - const methodAddPeerNotary = "register" + const methodAddPeerNotary = "addPeerIR" if nr := ev.NotaryRequest(); nr != nil { // create new notary request with the original nonce