Merge pull request #9436 from filecoin-project/feat/uptime

feat: Add node uptime rpc / output in info command
This commit is contained in:
Łukasz Magiera
2022-10-11 18:20:41 +02:00
committed by GitHub
17 changed files with 119 additions and 0 deletions
+6
View File
@@ -92,6 +92,12 @@ func infoCmdAct(cctx *cli.Context) error {
fmt.Println("Enabled subsystems (from markets API):", subsystems)
start, err := fullapi.StartTime(ctx)
if err != nil {
return err
}
fmt.Printf("StartTime: %s (started at %s)\n", time.Now().Sub(start).Truncate(time.Second), start.Truncate(time.Second))
fmt.Print("Chain: ")
err = lcli.SyncBasefeeCheck(ctx, fullapi)