add comments to fix golint

pull/496/head
Minh Doan 6 years ago committed by Minh Doan
parent cf727f76fe
commit a76f7d343d
  1. 1
      consensus/consensus_validator.go

@ -38,6 +38,7 @@ func (consensus *Consensus) sendBFTBlockToStateSyncing(consensusID uint32) {
return
}
// IsValidatorMessage checks if a message is to be sent to a validator.
func (consensus *Consensus) IsValidatorMessage(message *msg_pb.Message) bool {
return message.ReceiverType == msg_pb.ReceiverType_VALIDATOR && message.ServiceType == msg_pb.ServiceType_CONSENSUS
}

Loading…
Cancel
Save