From 7a727d7ed5e0f8311e03323405c737a2b494e93d Mon Sep 17 00:00:00 2001 From: sanaz Date: Thu, 25 Jul 2024 17:04:00 -0700 Subject: [PATCH] minor replacement --- consensus/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/state.go b/consensus/state.go index 575b70794d..b518d665db 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -2322,7 +2322,7 @@ func (cs *State) signAddVote(msgType cmtproto.SignedMsgType, hash []byte, header if msgType == cmtproto.PrecommitType { targetBlockTime := 11 * time.Second precommitVoteTime := cs.StartTime.Add(targetBlockTime) - waitTime := precommitVoteTime.Sub(time.Now()) + waitTime := precommitVoteTime.Sub(cmttime.Now()) if waitTime > 0 { time.Sleep(waitTime) }