frostfs-node/pkg/morph/client/netmap/wrapper/new_epoch.go

13 lines
296 B
Go
Raw Normal View History

2020-07-24 13:54:03 +00:00
package wrapper
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.
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
}