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