Skip to content

Commit

Permalink
sbft: do not backlog view change and new view messages
Browse files Browse the repository at this point in the history
Change-Id: I5cebee6a9a1c86589700bef16700d249ed92d307
Signed-off-by: Simon Schubert <sis@zurich.ibm.com>
  • Loading branch information
corecode committed Nov 16, 2016
1 parent 4a72065 commit 644223e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions orderer/sbft/simplebft/simplebft.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ func (s *SBFT) Receive(m *Msg, src uint64) {
} else if req := m.GetRequest(); req != nil {
s.handleRequest(req, src)
return
} else if vs := m.GetViewChange(); vs != nil {
s.handleViewChange(vs, src)
return
} else if nv := m.GetNewView(); nv != nil {
s.handleNewView(nv, src)
return
}

if s.testBacklog(m, src) {
Expand All @@ -216,12 +222,6 @@ func (s *SBFT) handleQueueableMessage(m *Msg, src uint64) {
} else if c := m.GetCheckpoint(); c != nil {
s.handleCheckpoint(c, src)
return
} else if vs := m.GetViewChange(); vs != nil {
s.handleViewChange(vs, src)
return
} else if nv := m.GetNewView(); nv != nil {
s.handleNewView(nv, src)
return
}

log.Warningf("received invalid message from %d", src)
Expand Down

0 comments on commit 644223e

Please sign in to comment.