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", Name: "start",
Usage: "start mining", Usage: "start mining",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
api := getApi(cctx) api, err := getAPI(cctx)
if err != nil {
return err
}
ctx := reqContext(cctx) ctx := reqContext(cctx)
// TODO: this address needs to be the address of an actual miner // TODO: this address needs to be the address of an actual miner

View File

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