Skip to content

Commit

Permalink
Fix bft handle request (#4667)
Browse files Browse the repository at this point in the history
Signed-off-by: Hagar Meir <hagar.meir@ibm.com>
  • Loading branch information
HagarMeir committed Feb 5, 2024
1 parent 240254b commit b8ccc92
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions orderer/consensus/smartbft/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,7 @@ func (c *BFTChain) HandleMessage(sender uint64, m *smartbftprotos.Message) {
// HandleRequest handles the request from the sender
func (c *BFTChain) HandleRequest(sender uint64, req []byte) {
c.Logger.Debugf("HandleRequest from %d", sender)
if _, err := c.verifier.VerifyRequest(req); err != nil {
c.Logger.Warnf("Got bad request from %d: %v", sender, err)
return
}
c.consensus.SubmitRequest(req)
c.consensus.HandleRequest(sender, req)
}

func (c *BFTChain) updateRuntimeConfig(block *cb.Block) types.Reconfig {
Expand Down

0 comments on commit b8ccc92

Please sign in to comment.