Skip to content

Commit 876cc58

Browse files
committed
Show group info in storage list
1 parent 768ce86 commit 876cc58

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

build/openrpc/miner.json.gz

35 Bytes
Binary file not shown.

cmd/lotus-miner/storage.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,17 @@ var storageListCmd = &cli.Command{
322322
if si.CanStore {
323323
fmt.Print(color.CyanString("Store"))
324324
}
325-
fmt.Println("")
326325
} else {
327326
fmt.Print(color.HiYellowString("Use: ReadOnly"))
328327
}
328+
fmt.Println()
329+
330+
if len(si.Groups) > 0 {
331+
fmt.Printf("Groups: %s\n", strings.Join(si.Groups, ", "))
332+
}
333+
if len(si.AllowTo) > 0 {
334+
fmt.Printf("AllowTo: %s\n", strings.Join(si.AllowTo, ", "))
335+
}
329336

330337
if localPath, ok := local[s.ID]; ok {
331338
fmt.Printf("\tLocal: %s\n", color.GreenString(localPath))

documentation/en/api-v0-methods-miner.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,9 @@ Inputs:
21312131
"Weight": 42,
21322132
"MaxStorage": 42,
21332133
"CanSeal": true,
2134-
"CanStore": true
2134+
"CanStore": true,
2135+
"Groups": null,
2136+
"AllowTo": null
21352137
},
21362138
{
21372139
"Capacity": 9,
@@ -2241,7 +2243,9 @@ Response:
22412243
"Weight": 42,
22422244
"MaxStorage": 42,
22432245
"CanSeal": true,
2244-
"CanStore": true
2246+
"CanStore": true,
2247+
"Groups": null,
2248+
"AllowTo": null
22452249
}
22462250
```
22472251

0 commit comments

Comments
 (0)