| 1456 | } |
| 1457 | |
| 1458 | func (h *Handler) setChaincodeProposal(signedProp *pb.SignedProposal, prop *pb.Proposal, msg *pb.ChaincodeMessage) error { |
| 1459 | if prop != nil && signedProp == nil { |
| 1460 | return errors.New("failed getting proposal context. Signed proposal is nil") |
| 1461 | } |
| 1462 | // TODO: This doesn't make a lot of sense. Feels like both are required or |
| 1463 | // neither should be set. Check with a knowledgeable expert. |
| 1464 | if prop != nil { |
| 1465 | msg.Proposal = signedProp |
| 1466 | } |
| 1467 | return nil |
| 1468 | } |
| 1469 | |
| 1470 | func (h *Handler) getCollectionStore(channelID string) privdata.CollectionStore { |
| 1471 | return privdata.NewSimpleCollectionStore( |