Skip to content

Commit 273ec21

Browse files
corecodeSimon Schubert
authored and
Simon Schubert
committed
sbft: stop new view timer on commit
Change-Id: I3a5dffe673c05ec6ccc9862ffe69b54bdd9ed1b3 Signed-off-by: Simon Schubert <[email protected]>
1 parent 6d53b1e commit 273ec21

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

orderer/sbft/simplebft/commit.go

+1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ func (s *SBFT) handleCommit(c *Subject, src uint64) {
4848
return
4949
}
5050
s.cur.commit[src] = c
51+
s.cancelViewChangeTimer()
5152
s.maybeExecute()
5253
}

orderer/sbft/simplebft/preprepare.go

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ func (s *SBFT) acceptPreprepare(pp *Preprepare) {
9292

9393
func (s *SBFT) handleCheckedPreprepare(pp *Preprepare) {
9494
s.acceptPreprepare(pp)
95-
s.cancelViewChangeTimer()
9695
if !s.isPrimary() {
9796
s.sendPrepare()
9897
}

0 commit comments

Comments
 (0)