2021-01-28 11:39:08 +00:00
|
|
|
package wrapper
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/morph/client/container"
|
|
|
|
)
|
|
|
|
|
|
|
|
// StartEstimation votes to produce start estimation notification.
|
|
|
|
func (w *Wrapper) StartEstimation(epoch uint64) error {
|
|
|
|
args := container.StartEstimation{}
|
|
|
|
args.SetEpoch(int64(epoch))
|
|
|
|
|
|
|
|
return w.client.StartEstimation(args)
|
|
|
|
}
|
|
|
|
|
2021-04-29 13:35:26 +00:00
|
|
|
// StartEstimationNotary votes to produce start estimation notification through
|
|
|
|
// notary contract.
|
2021-05-25 12:15:21 +00:00
|
|
|
//
|
|
|
|
// Deprecated: provide TryNotary() option to NewFromMorph
|
|
|
|
// and use StartEstimation.
|
2021-04-29 13:35:26 +00:00
|
|
|
func (w *Wrapper) StartEstimationNotary(epoch uint64) error {
|
|
|
|
args := container.StartEstimation{}
|
|
|
|
args.SetEpoch(int64(epoch))
|
|
|
|
|
|
|
|
return w.client.StartEstimationNotary(args)
|
|
|
|
}
|
|
|
|
|
2021-01-28 11:39:08 +00:00
|
|
|
// StopEstimation votes to produce stop estimation notification.
|
|
|
|
func (w *Wrapper) StopEstimation(epoch uint64) error {
|
|
|
|
args := container.StopEstimation{}
|
|
|
|
args.SetEpoch(int64(epoch))
|
|
|
|
|
|
|
|
return w.client.StopEstimation(args)
|
|
|
|
}
|
2021-04-29 13:35:26 +00:00
|
|
|
|
|
|
|
// StopEstimationNotary votes to produce stop estimation notification through
|
|
|
|
// notary contract.
|
2021-05-25 12:15:21 +00:00
|
|
|
//
|
|
|
|
// Deprecated: provide TryNotary() option to NewFromMorph
|
|
|
|
// and use StopEstimation.
|
2021-04-29 13:35:26 +00:00
|
|
|
func (w *Wrapper) StopEstimationNotary(epoch uint64) error {
|
|
|
|
args := container.StopEstimation{}
|
|
|
|
args.SetEpoch(int64(epoch))
|
|
|
|
|
|
|
|
return w.client.StopEstimationNotary(args)
|
|
|
|
}
|