func (op *obcBatch) wrapMessage(msgPayload []byte) *pb.Message {
	batchMsg := &BatchMessage{&BatchMessage_PbftMessage{msgPayload}}
	packedBatchMsg, _ := proto.Marshal(batchMsg)
	ocMsg := &pb.Message{
		Type:    pb.Message_CONSENSUS,
		Payload: packedBatchMsg,
	}
	return ocMsg
}
// Wraps a payload into a batch message, packs it and wraps it into
// a Fabric message. Called by broadcast before transmission.
Wraps a payload into a batch message, packs it and wraps it into
a Fabric message. Called by broadcast before transmission.
// Wraps a payload into a batch message packs it and wraps it into // a Fabric message . Called by broadcast before transmission .
func (op *obcBatch) wrapMessage(msgPayload []byte) *pb.Message {
	batchMsg := &BatchMessage{&BatchMessage_PbftMessage{msgPayload}}
	packedBatchMsg, _ := proto.Marshal(batchMsg)
	ocMsg := &pb.Message{
		Type:    pb.Message_CONSENSUS,
		Payload: packedBatchMsg,
	}
	return ocMsg
}
func ( op * obcBatch ) wrapMessage ( msgPayload [ ] byte ) * pb . Message { batchMsg := & BatchMessage { & BatchMessage_PbftMessage { msgPayload } } packedBatchMsg , _ := proto . Marshal ( batchMsg ) ocMsg := & pb . Message { Type : pb . Message_CONSENSUS , Payload : packedBatchMsg , } return ocMsg }
Wraps a payload into a batch message, packs it and wraps it into
a Fabric message.
Wraps a payload into a batch message packs it and wraps it into a Fabric message .