You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: shared/services/state/cli/cli.go
+40Lines changed: 40 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,42 @@ var prettyFlag = flag.Bool("p", false, "Pretty print the output")
28
28
varinputFlag=flag.Bool("i", false, "Parse a network state from stdin instead of retrieving it from the network")
29
29
varcriticalDutiesSlotsFlag=flag.Bool("critical-duties-slots", false, "If passed, output a list of critical duties slots for the given state as if it were the final state in a 6300 epoch interval. This is outputted instead of the state json.")
30
30
varcriticalDutiesEpochCountFlag=flag.Uint64("critical-duties-epoch-count", 6300, "The number of epochs to consider when calculating critical duties")
31
+
varminimalFlag=flag.Bool("minimal", false, "Truncate every list/map to at most one entry (useful for producing a small inspection file)")
32
+
33
+
// truncateNetworkState reduces every slice and map field to at most one element.
0 commit comments