fix build

This commit is contained in:
whyrusleeping 2019-07-11 21:09:04 -07:00
parent 60efe8542e
commit ea2039ecb6
2 changed files with 10 additions and 2 deletions

View File

@ -21,7 +21,11 @@ var minerStart = &cli.Command{
Name: "start",
Usage: "start mining",
Action: func(cctx *cli.Context) error {
api := getApi(cctx)
api, err := getAPI(cctx)
if err != nil {
return err
}
ctx := reqContext(cctx)
// TODO: this address needs to be the address of an actual miner

View File

@ -18,7 +18,11 @@ var mpoolPending = &cli.Command{
Name: "pending",
Usage: "Get pending messages",
Action: func(cctx *cli.Context) error {
api := getApi(cctx)
api, err := getAPI(cctx)
if err != nil {
return err
}
ctx := reqContext(cctx)
msgs, err := api.MpoolPending(ctx, nil)