Skip to content

Commit

Permalink
logs timeout propose and timeout commit
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Oct 2, 2024
1 parent eddd24b commit 647cd29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,10 @@ func (cs *State) updateToState(state sm.State) {
// to be gathered for the first block.
// And alternative solution that relies on clocks:
// cs.StartTime = state.LastBlockTime.Add(timeoutCommit)
cs.Logger.Info("timeout_commit is set to", "timeout_commit", cs.config.TimeoutCommit)
cs.StartTime = cs.config.Commit(cmttime.Now())
} else {
cs.Logger.Info("timeout_commit is set to", "timeout_commit", cs.config.TimeoutCommit)
cs.StartTime = cs.config.Commit(cs.CommitTime)
}

Expand Down Expand Up @@ -1114,6 +1116,7 @@ func (cs *State) enterPropose(height int64, round int32) {
}()

// If we don't get the proposal and all block parts quick enough, enterPrevote
cs.Logger.Info("scheduling timeoutPropose", "timeout", cs.config.TimeoutPropose)
cs.scheduleTimeout(cs.config.Propose(round), height, round, cstypes.RoundStepPropose)

// Nothing more to do if we're not a validator
Expand Down

0 comments on commit 647cd29

Please sign in to comment.