forked from TrueCloudLab/frostfs-node
[#447] innerring: Do not handle or call InnerRingUpdate method
This method has been removed from netmap contract. Corresponding event from neofs contract renamed to AlphabetUpdate and should not be processed, because alphabet updated from `RoleManagement` contract. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
1d1fc04ac9
commit
999ad5e1c0
4 changed files with 0 additions and 69 deletions
|
@ -28,7 +28,6 @@ const (
|
|||
approvePeerMethod = "addPeer"
|
||||
updatePeerStateMethod = "updateState"
|
||||
setConfigMethod = "setConfigMethod"
|
||||
updateInnerRingMethod = "updateInnerRingMethod"
|
||||
getNetmapSnapshotMethod = "netmap"
|
||||
)
|
||||
|
||||
|
@ -94,20 +93,6 @@ func SetConfig(cli *client.Client, con util.Uint160, args *SetConfigArgs) error
|
|||
)
|
||||
}
|
||||
|
||||
// UpdateInnerRing invokes updateInnerRing method.
|
||||
func UpdateInnerRing(cli *client.Client, con util.Uint160, list []*keys.PublicKey) error {
|
||||
if cli == nil {
|
||||
return client.ErrNilClient
|
||||
}
|
||||
|
||||
rawKeys := make([][]byte, 0, len(list))
|
||||
for i := range list {
|
||||
rawKeys = append(rawKeys, list[i].Bytes())
|
||||
}
|
||||
|
||||
return cli.NotaryInvoke(con, updateInnerRingMethod, rawKeys)
|
||||
}
|
||||
|
||||
// NetmapSnapshot returns current netmap node infos.
|
||||
// Consider using pkg/morph/client/netmap for this.
|
||||
func NetmapSnapshot(cli *client.Client, con util.Uint160) (*netmap.Netmap, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue