feat: Add node uptime rpc / output in info command

This commit is contained in:
Łukasz Magiera
2022-10-11 10:11:09 +02:00
parent e74838f024
commit 2c11f9d265
17 changed files with 119 additions and 0 deletions
+6
View File
@@ -41,7 +41,13 @@ func infoCmdAct(cctx *cli.Context) error {
return err
}
start, err := fullapi.StartTime(ctx)
if err != nil {
return err
}
fmt.Printf("Network: %s\n", network.NetworkName)
fmt.Printf("StartTime: %s (started at %s)\n", time.Now().Sub(start).Truncate(time.Second), start.Truncate(time.Second))
fmt.Print("Chain: ")
err = SyncBasefeeCheck(ctx, fullapi)
if err != nil {