add sector size info
This commit is contained in:
parent
dd14303533
commit
f221c05a33
@ -37,6 +37,13 @@ var infoCmd = &cli.Command{
|
|||||||
|
|
||||||
fmt.Printf("Miner: %s\n", maddr)
|
fmt.Printf("Miner: %s\n", maddr)
|
||||||
|
|
||||||
|
// Sector size
|
||||||
|
size, err := api.StateMinerSectorSize(ctx, maddr, nil)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
fmt.Printf("Sector Size(Byte): %d\n", types.NewInt(size))
|
||||||
|
|
||||||
pow, err := api.StateMinerPower(ctx, maddr, nil)
|
pow, err := api.StateMinerPower(ctx, maddr, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -56,7 +63,6 @@ var infoCmd = &cli.Command{
|
|||||||
fmt.Println("Failed Sectors:\t", sinfo.FailedCount)
|
fmt.Println("Failed Sectors:\t", sinfo.FailedCount)
|
||||||
|
|
||||||
// TODO: grab actr state / info
|
// TODO: grab actr state / info
|
||||||
// * Sector size
|
|
||||||
// * Sealed sectors (count / bytes)
|
// * Sealed sectors (count / bytes)
|
||||||
// * Power
|
// * Power
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user