pull/496/head
Minh Doan 6 years ago committed by Minh Doan
parent 6d5dd2afe3
commit 1f8cd8c5b7
  1. 2
      consensus/consensus_validator.go
  2. 1
      node/node_handler.go

@ -42,7 +42,7 @@ func (consensus *Consensus) IsValidatorMessage(message *msg_pb.Message) bool {
} }
// ProcessMessageValidator dispatches validator's consensus message. // ProcessMessageValidator dispatches validator's consensus message.
func (consensus *Consensus) NewProcessMessageValidator(payload []byte) { func (consensus *Consensus) ProcessMessageValidator(payload []byte) {
message := &msg_pb.Message{} message := &msg_pb.Message{}
err := protobuf.Unmarshal(payload, message) err := protobuf.Unmarshal(payload, message)
if err != nil { if err != nil {

@ -135,7 +135,6 @@ func (node *Node) messageHandler(content []byte, sender string) {
utils.GetLogInstance().Info("NET: Leader received message:", "messageCategory", msgCategory) utils.GetLogInstance().Info("NET: Leader received message:", "messageCategory", msgCategory)
consensusObj.ProcessMessageLeader(msgPayload) consensusObj.ProcessMessageLeader(msgPayload)
} else { } else {
<<<<<<< HEAD
utils.GetLogInstance().Info("NET: Validator received message:", "messageCategory", msgCategory) utils.GetLogInstance().Info("NET: Validator received message:", "messageCategory", msgCategory)
consensusObj.ProcessMessageValidator(msgPayload) consensusObj.ProcessMessageValidator(msgPayload)
// TODO(minhdoan): add logic to check if the current blockchain is not sync with other consensus // TODO(minhdoan): add logic to check if the current blockchain is not sync with other consensus

Loading…
Cancel
Save