Skip to content

Commit

Permalink
sbft: stop new view timer on commit
Browse files Browse the repository at this point in the history
Change-Id: I3a5dffe673c05ec6ccc9862ffe69b54bdd9ed1b3
Signed-off-by: Simon Schubert <[email protected]>
  • Loading branch information
corecode authored and Simon Schubert committed Nov 22, 2016
1 parent 6d53b1e commit 273ec21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions orderer/sbft/simplebft/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ func (s *SBFT) handleCommit(c *Subject, src uint64) {
return
}
s.cur.commit[src] = c
s.cancelViewChangeTimer()
s.maybeExecute()
}
1 change: 0 additions & 1 deletion orderer/sbft/simplebft/preprepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func (s *SBFT) acceptPreprepare(pp *Preprepare) {

func (s *SBFT) handleCheckedPreprepare(pp *Preprepare) {
s.acceptPreprepare(pp)
s.cancelViewChangeTimer()
if !s.isPrimary() {
s.sendPrepare()
}
Expand Down

0 comments on commit 273ec21

Please sign in to comment.