API InvokeChaincode() 可以一个chaincode中调用另外一个chaincode中的函数
两个chaincode需要安装在相同的peer结点中
如果只需要查询被调链码的世界状态,可以在不同通道中进行,如果涉及更新操作,两个chaincode需要在同一个通道中。
InvokeChaincode() Interface
InvokeChaincode(chaincodeName string, args [][]byte, channel string) pb.Response
参考文章:Cross-Chaincode Invoking in Hyperledger Fabric
————————————————
原文链接:https://blog.csdn.net/nature_ph/article/details/126892467