Skip to content

Commit 6d53b1e

Browse files
corecodeSimon Schubert
authored and
Simon Schubert
committed
sbft: accept new view even if we are not in view change
Change-Id: Ic7499c3a41729a882e346cd005f5beea26c04605 Signed-off-by: Simon Schubert <[email protected]>
1 parent fbb06ba commit 6d53b1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

orderer/sbft/simplebft/newview.go

+5
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ func (s *SBFT) handleNewView(nv *NewView, src uint64) {
141141

142142
s.replicaState[s.primaryIDView(nv.View)].newview = nv
143143

144+
if nv.View > s.view {
145+
s.view = nv.View
146+
s.activeView = false
147+
}
148+
144149
s.processNewView()
145150
}
146151

0 commit comments

Comments
 (0)