Skip to content

Commit

Permalink
sbft: do not blindly go active in view on hello message
Browse files Browse the repository at this point in the history
Change-Id: I6e1c70b575c59e2d9ca7981beca926ebd1c1bf73
Signed-off-by: Simon Schubert <sis@zurich.ibm.com>
  • Loading branch information
corecode authored and Simon Schubert committed Nov 21, 2016
1 parent ef1b28f commit 252d630
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orderer/sbft/simplebft/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ func (s *SBFT) handleHello(h *Hello, src uint64) {
return
}

if s.view < h.NewView.View {
if s.view <= h.NewView.View {
s.view = h.NewView.View
s.activeView = true
}
s.activeView = true
}

s.replicaState[src].hello = h
Expand Down

0 comments on commit 252d630

Please sign in to comment.