我通过执行./byfn.sh -m up打开了hyperledger-fabric网络及其官方文档。
官方文档网站:http://hyperledger-fabric.readthedocs.io/en/release-1.1/build_network.html
脚本自动使用a和b进行事务处理。
具体的命令是peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n mycc -c '{"Args":["invoke","a","b","10"]}'。
现在,我想要获取包含事务记录的chainfile。但我不知道它在哪里。
操作系统: Ubuntu 16.04 LTS
交换矩阵版本:release-1.1
发布于 2018-05-21 17:29:52
安装在对等体上的chaincode包是protobuf消息的序列化字节。ChainDeploymentSpec消息中的协议The,它在位于"https://github.com/hyperledger/fabric/blob/release-1.1/protos/peer/chaincode.proto“的proto文件中定义。
chaincode源文件存储在ChainDeploymentSpec的code_package字段中存储的序列化存档文件中。
https://stackoverflow.com/questions/50445653
复制相似问题