Skip to content

Commit

Permalink
calculates delay based on 11s after start time
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Jul 26, 2024
1 parent 5a90ec5 commit 86b556d
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 @@ -2320,7 +2320,7 @@ func (cs *State) signAddVote(msgType cmtproto.SignedMsgType, hash []byte, header
}

if msgType == cmtproto.PrecommitType {
targetBlockTime := 12 * time.Second
targetBlockTime := 11 * time.Second
precommitVoteTime := cs.StartTime.Add(targetBlockTime)
waitTime := precommitVoteTime.Sub(time.Now())
if waitTime > 0 {
Expand Down

0 comments on commit 86b556d

Please sign in to comment.