forked from TrueCloudLab/frostfs-node
[#496] pkg/innerring: provide wrappers to processors
The only thing we need hashes for is to process notifications. Balance contract if left for now, as it has some initialization. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
9b87e6267d
commit
8a2b7f4501
24 changed files with 215 additions and 228 deletions
13
pkg/morph/client/netmap/innerring.go
Normal file
13
pkg/morph/client/netmap/innerring.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package netmap
|
||||
|
||||
import "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
||||
|
||||
// SetInnerRing updates inner ring members in netmap contract.
|
||||
func (c *Client) SetInnerRing(keys keys.PublicKeys) error {
|
||||
args := make([][]byte, len(keys))
|
||||
for i := range args {
|
||||
args[i] = keys[i].Bytes()
|
||||
}
|
||||
|
||||
return c.client.Invoke(c.setInnerRing, args)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue