MCPcopy
hub / github.com/hyperledger/fabric / setChaincodeProposal

Method setChaincodeProposal

core/chaincode/handler.go:1458–1468  ·  view source on GitHub ↗
(signedProp *pb.SignedProposal, prop *pb.Proposal, msg *pb.ChaincodeMessage)

Source from the content-addressed store, hash-verified

1456}
1457
1458func (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
1470func (h *Handler) getCollectionStore(channelID string) privdata.CollectionStore {
1471 return privdata.NewSimpleCollectionStore(

Callers 1

ExecuteMethod · 0.95

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected