2020-07-24 13:54:03 +00:00
|
|
|
package wrapper
|
|
|
|
|
2021-05-31 11:50:11 +00:00
|
|
|
import "github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap"
|
2020-07-24 13:54:03 +00:00
|
|
|
|
|
|
|
// NewEpoch updates NeoFS epoch number through
|
|
|
|
// Netmap contract call.
|
2021-05-31 11:50:11 +00:00
|
|
|
func (w *Wrapper) NewEpoch(e uint64) error {
|
|
|
|
var args netmap.NewEpochArgs
|
|
|
|
args.SetEpochNumber(int64(e))
|
|
|
|
|
|
|
|
return w.client.NewEpoch(args)
|
2020-07-24 13:54:03 +00:00
|
|
|
}
|