forked from TrueCloudLab/frostfs-node
[#486] morph/client: Separate container estimation functions
Inner ring should be able to invoke contract methods both notary and non notary way. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
7c559aaeaa
commit
c4f4381b13
4 changed files with 34 additions and 2 deletions
|
@ -21,6 +21,13 @@ func (e *StopEstimation) SetEpoch(v int64) {
|
|||
}
|
||||
|
||||
func (c *Client) StartEstimation(args StartEstimation) error {
|
||||
return errors.Wrapf(c.client.Invoke(
|
||||
c.startEstimation,
|
||||
args.epoch,
|
||||
), "could not invoke method (%s)", c.startEstimation)
|
||||
}
|
||||
|
||||
func (c *Client) StartEstimationNotary(args StartEstimation) error {
|
||||
return errors.Wrapf(c.client.NotaryInvoke(
|
||||
c.startEstimation,
|
||||
args.epoch,
|
||||
|
@ -28,6 +35,13 @@ func (c *Client) StartEstimation(args StartEstimation) error {
|
|||
}
|
||||
|
||||
func (c *Client) StopEstimation(args StopEstimation) error {
|
||||
return errors.Wrapf(c.client.Invoke(
|
||||
c.stopEstimation,
|
||||
args.epoch,
|
||||
), "could not invoke method (%s)", c.stopEstimation)
|
||||
}
|
||||
|
||||
func (c *Client) StopEstimationNotary(args StopEstimation) error {
|
||||
return errors.Wrapf(c.client.NotaryInvoke(
|
||||
c.stopEstimation,
|
||||
args.epoch,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue