fix: lotus-miner storage-deals set-deal-duration to use markets API instead of storage miner API

This commit is contained in:
Dirk McCormick 2021-08-03 11:48:48 +02:00
parent ae0680a5de
commit d1dc30b14d

View File

@ -591,7 +591,7 @@ var setSealDurationCmd = &cli.Command{
Usage: "Set the expected time, in minutes, that you expect sealing sectors to take. Deals that start before this duration will be rejected.", Usage: "Set the expected time, in minutes, that you expect sealing sectors to take. Deals that start before this duration will be rejected.",
ArgsUsage: "<minutes>", ArgsUsage: "<minutes>",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx) nodeApi, closer, err := lcli.GetMarketsAPI(cctx)
if err != nil { if err != nil {
return err return err
} }