From fe339d46eb15a7c40386c6daedaf8ec1c410cd75 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Fri, 13 Nov 2020 21:21:24 +0100 Subject: [PATCH] Print Consensus Faults in miner info Signed-off-by: Jakub Sztandera --- cli/state.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/state.go b/cli/state.go index 427746155..31537cc89 100644 --- a/cli/state.go +++ b/cli/state.go @@ -119,7 +119,7 @@ var stateMinerInfo = &cli.Command{ } fmt.Printf("PeerID:\t%s\n", mi.PeerId) - fmt.Printf("Multiaddrs: \t") + fmt.Printf("Multiaddrs:\t") for _, addr := range mi.Multiaddrs { a, err := multiaddr.NewMultiaddrBytes(addr) if err != nil { @@ -127,6 +127,7 @@ var stateMinerInfo = &cli.Command{ } fmt.Printf("%s ", a) } + fmt.Printf("Consensus Fault End:\t%d\n", mi.ConsensusFaultElapsed) fmt.Printf("SectorSize:\t%s (%d)\n", types.SizeStr(types.NewInt(uint64(mi.SectorSize))), mi.SectorSize) pow, err := api.StateMinerPower(ctx, addr, ts.Key())