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:
commit
b484d72c80
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user