Skip to content

Commit

Permalink
adds another log
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Aug 31, 2024
1 parent 6bb8a76 commit 8a52745
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,7 @@ func (cs *State) enterPrevoteWait(height int64, round int32) {
func (cs *State) isReadyToPrecommit(height int64, round int32) (bool, time.Duration) {
// 10 s for block propagation + 2s for block processing + 2 s for prevotes
// collection = 14 s
cs.Logger.Info("PrecommitDelay is set to", "PrecommitDelay", PrecommitDelay)
precommitVoteTime := cs.StartTime.Add(PrecommitDelay * time.Second)
waitTime := time.Until(precommitVoteTime)
schema.WritePrecommitTime(cs.traceClient, height, round, waitTime.Seconds())
Expand Down

0 comments on commit 8a52745

Please sign in to comment.