Skip to content

Commit 252d630

Browse files
corecodeSimon Schubert
authored and
Simon Schubert
committed
sbft: do not blindly go active in view on hello message
Change-Id: I6e1c70b575c59e2d9ca7981beca926ebd1c1bf73 Signed-off-by: Simon Schubert <[email protected]>
1 parent ef1b28f commit 252d630

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orderer/sbft/simplebft/connection.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ func (s *SBFT) handleHello(h *Hello, src uint64) {
8888
return
8989
}
9090

91-
if s.view < h.NewView.View {
91+
if s.view <= h.NewView.View {
9292
s.view = h.NewView.View
93+
s.activeView = true
9394
}
94-
s.activeView = true
9595
}
9696

9797
s.replicaState[src].hello = h

0 commit comments

Comments
 (0)