From 5abe68e6b8c638f7566137241bce1cbfba9d7a64 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Thu, 27 Jan 2022 11:10:26 -0500 Subject: [PATCH] remove initial height time from timely --- internal/consensus/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/consensus/state.go b/internal/consensus/state.go index 801ff47cc..8bf6a8290 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -2570,7 +2570,7 @@ func (cs *State) calculateProposalTimestampDifferenceMetric() { MessageDelay: cs.state.ConsensusParams.Synchrony.MessageDelay, } - isTimely := cs.Proposal.IsTimely(cs.ProposalReceiveTime, tp, cs.state.InitialHeight) + isTimely := cs.Proposal.IsTimely(cs.ProposalReceiveTime, tp) cs.metrics.ProposalTimestampDifference.With("is_timely", fmt.Sprintf("%t", isTimely)). Observe(cs.ProposalReceiveTime.Sub(cs.Proposal.Timestamp).Seconds()) }