fix build
This commit is contained in:
parent
60efe8542e
commit
ea2039ecb6
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user