Skip to content

Commit

Permalink
Merge "sbft: do not backlog view change and new view messages"
Browse files Browse the repository at this point in the history
  • Loading branch information
mastersingh24 authored and Gerrit Code Review committed Nov 17, 2016
2 parents 4b96f32 + 644223e commit 97f8584
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 97f8584

Please sign in to comment.