From 860a6a231d3ee897dab13dd78825400190e0483c Mon Sep 17 00:00:00 2001 From: jennijuju Date: Mon, 31 Aug 2020 01:43:58 -0400 Subject: [PATCH] 3388: Added target height to sync wait --- cli/sync.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/sync.go b/cli/sync.go index 57553a068..27957ac35 100644 --- a/cli/sync.go +++ b/cli/sync.go @@ -180,11 +180,13 @@ func SyncWait(ctx context.Context, napi api.FullNode) error { ss := state.ActiveSyncs[working] var target []cid.Cid + var theight abi.ChainEpoch if ss.Target != nil { target = ss.Target.Cids() + theight = ss.Target.Height() } - fmt.Printf("\r\x1b[2KWorker %d: Target: %s\tState: %s\tHeight: %d", working, target, chain.SyncStageString(ss.Stage), ss.Height) + fmt.Printf("\r\x1b[2KWorker %d: Target Height: %d\tTarget: %s\tState: %s\tHeight: %d", working, theight, target, chain.SyncStageString(ss.Stage), ss.Height) if time.Now().Unix()-int64(head.MinTimestamp()) < int64(build.BlockDelaySecs) { fmt.Println("\nDone!")