Skip to content

Commit

Permalink
minor replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Jul 26, 2024
1 parent 86b556d commit 7a727d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 7a727d7

Please sign in to comment.