istclient: add StopMining

This commit is contained in:
Alan Chen 2017-08-22 15:36:27 +08:00
parent e026d791cd
commit eeec813f92
1 changed files with 8 additions and 0 deletions

View File

@ -99,6 +99,14 @@ func (ic *Client) StartMining(ctx context.Context) error {
return err
}
func (ic *Client) StopMining(ctx context.Context) error {
err := ic.c.CallContext(ctx, nil, "miner_stop", nil)
if err != nil {
return err
}
return err
}
// ----------------------------------------------------------------------------
func (ic *Client) ProposeValidator(ctx context.Context, address common.Address, auth bool) error {