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

Function invokeChaincode

integration/pvtdata/implicit_coll_test.go:175–180  ·  view source on GitHub ↗
(n *nwo.Network, peer *nwo.Peer, command commands.ChaincodeInvoke)

Source from the content-addressed store, hash-verified

173}
174
175func invokeChaincode(n *nwo.Network, peer *nwo.Peer, command commands.ChaincodeInvoke) {
176 sess, err := n.PeerUserSession(peer, "User1", command)
177 Expect(err).NotTo(HaveOccurred())
178 Eventually(sess, n.EventuallyTimeout).Should(gexec.Exit(0))
179 Expect(sess.Err).To(gbytes.Say("Chaincode invoke successful."))
180}
181
182func queryChaincode(n *nwo.Network, peer *nwo.Peer, command commands.ChaincodeQuery, expectedMessage string, expectSuccess bool) {
183 sess, err := n.PeerUserSession(peer, "User1", command)

Callers 1

writeImplicitCollectionFunction · 0.70

Calls 1

PeerUserSessionMethod · 0.80

Tested by

no test coverage detected