Skip to content

Commit

Permalink
do not skip submit block msg sent from larger height node (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiemylogos authored and laizy committed May 6, 2019
1 parent ec98840 commit 66273d5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions consensus/vbft/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const (

const (
CAP_MESSAGE_CHANNEL = 64
CAP_ACTION_CHANNEL = 8
CAP_ACTION_CHANNEL = 64
CAP_MSG_SEND_CHANNEL = 16
)

Expand Down Expand Up @@ -1060,10 +1060,6 @@ func (self *Server) onConsensusMsg(peerIdx uint32, msg ConsensusMsg, msgHash com
return
}
msgBlkNum := pMsg.GetBlockNum()
if msgBlkNum > self.GetCurrentBlockNo() {
log.Errorf("failed to get submit msg (%d) to currentblock:%d", msgBlkNum, self.GetCurrentBlockNo())
return
}
if self.GetCurrentBlockNo() > msgBlkNum+1 {
return
}
Expand Down

0 comments on commit 66273d5

Please sign in to comment.