func (op *obcBatch) unicastMsg(msg *BatchMessage, receiverID uint64) {
	msgPayload, _ := proto.Marshal(msg)
	ocMsg := &pb.Message{
		Type:    pb.Message_CONSENSUS,
		Payload: msgPayload,
	}
	receiverHandle, err := getValidatorHandle(receiverID)
	if err != nil {
		return

	}
	op.stack.Unicast(ocMsg, receiverHandle)
}
// send a message to a specific replica
send a message to a specific replica
// send a message to a specific replica
func (op *obcBatch) unicastMsg(msg *BatchMessage, receiverID uint64) {
	msgPayload, _ := proto.Marshal(msg)
	ocMsg := &pb.Message{
		Type:    pb.Message_CONSENSUS,
		Payload: msgPayload,
	}
	receiverHandle, err := getValidatorHandle(receiverID)
	if err != nil {
		return
	}
	op.stack.Unicast(ocMsg, receiverHandle)
}
func ( op * obcBatch ) unicastMsg ( msg * BatchMessage , receiverID uint64 ) { msgPayload , _ := proto . Marshal ( msg ) ocMsg := & pb . Message { Type : pb . Message_CONSENSUS , Payload : msgPayload , } receiverHandle , err := getValidatorHandle ( receiverID ) if err != nil { return } op . stack . Unicast ( ocMsg , receiverHandle ) }
send a message to a specific replica
send a message to a specific replica