consensus: fix round number when handling RoundStepNewRound timeout (#9252)

This commit is contained in:
fatcat22
2022-08-18 16:24:06 +08:00
committed by GitHub
parent 1069ffc6aa
commit c8302c5fcb
2 changed files with 3 additions and 2 deletions

View File

@@ -33,4 +33,5 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermi
### BUG FIXES
[docker] \#9073 enable cross platform build using docker buildx
- [consensus] \#9229 fix round number of `enterPropose` when handling `RoundStepNewRound` timeout. (@fatcat22)
- [docker] \#9073 enable cross platform build using docker buildx

View File

@@ -918,7 +918,7 @@ func (cs *State) handleTimeout(ti timeoutInfo, rs cstypes.RoundState) {
cs.enterNewRound(ti.Height, 0)
case cstypes.RoundStepNewRound:
cs.enterPropose(ti.Height, 0)
cs.enterPropose(ti.Height, ti.Round)
case cstypes.RoundStepPropose:
if err := cs.eventBus.PublishEventTimeoutPropose(cs.RoundStateEvent()); err != nil {