manager

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2019 License: GPL-3.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetGasConfig

func SetGasConfig(price *big.Int, limit uint64)

SetGasConfig set gas price and limit

func SetRunMode

func SetRunMode(rm configs.RunMode)

Types

type Console

type Console struct {
	// contains filtered or unexported fields
}

Console manage apis

func NewConsole

func NewConsole(ctx *context.Context, rpc string, keystore string, passwordFile string, output cm.Output) (*Console, error)

NewConsole build a console

func (*Console) GetStatus

func (c *Console) GetStatus() (*cm.Status, error)

GetStatus get status of cpchain node

func (*Console) StartMining

func (c *Console) StartMining() error

StartMining start mining

func (*Console) StopMining

func (c *Console) StopMining() error

StopMining stop mining

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL