Merge pull request #10323 from mtelka/info-noadmin

fix: state: lotus-miner info should show deals info without admin permission
This commit is contained in:
Łukasz Magiera 2023-03-23 12:39:28 +01:00 committed by GitHub
commit b484d72c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,14 +325,12 @@ func handleMiningInfo(ctx context.Context, cctx *cli.Context, fullapi v1api.Full
} }
} }
{
fmt.Println() fmt.Println()
ws, err := nodeApi.WorkerStats(ctx) ws, err := nodeApi.WorkerStats(ctx)
if err != nil { if err != nil {
return xerrors.Errorf("getting worker stats: %w", err) fmt.Printf("ERROR: getting worker stats: %s\n", err)
} } else {
workersByType := map[string]int{ workersByType := map[string]int{
sealtasks.WorkerSealing: 0, sealtasks.WorkerSealing: 0,
sealtasks.WorkerWindowPoSt: 0, sealtasks.WorkerWindowPoSt: 0,