Add Inner Ring code
This commit is contained in:
parent
dadfd90dcd
commit
b7b5079934
400 changed files with 11420 additions and 8690 deletions
23
pkg/morph/client/netmap/new_epoch.go
Normal file
23
pkg/morph/client/netmap/new_epoch.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package netmap
|
||||
|
||||
import "github.com/pkg/errors"
|
||||
|
||||
// NewEpochArgs groups the arguments
|
||||
// of new epoch invocation call.
|
||||
type NewEpochArgs struct {
|
||||
number int64 // new epoch number
|
||||
}
|
||||
|
||||
// SetEpochNumber sets the new epoch number.
|
||||
func (a *NewEpochArgs) SetEpochNumber(v int64) {
|
||||
a.number = v
|
||||
}
|
||||
|
||||
// NewEpoch invokes the call of new epoch method
|
||||
// of NeoFS Netmap contract.
|
||||
func (c *Client) NewEpoch(args NewEpochArgs) error {
|
||||
return errors.Wrapf(c.client.Invoke(
|
||||
c.addPeerMethod,
|
||||
args.number,
|
||||
), "could not invoke method (%s)", c.newEpochMethod)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue