lotus-miner info should show deals info without admin permission
This commit is contained in:
parent
392d3d4b8a
commit
7f33db90d8
@ -347,14 +347,12 @@ func handleMiningInfo(ctx context.Context, cctx *cli.Context, fullapi v1api.Full
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
fmt.Println()
|
||||||
fmt.Println()
|
|
||||||
|
|
||||||
ws, err := nodeApi.WorkerStats(ctx)
|
|
||||||
if err != nil {
|
|
||||||
return xerrors.Errorf("getting worker stats: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
ws, err := nodeApi.WorkerStats(ctx)
|
||||||
|
if err != nil {
|
||||||
|
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