14. Fabric2.2 区块链农产品溯源系统 - 智能合约安装

上节对农产品溯源合约进行调试,测试,本节将打包的合约代码,进行install、approve、commit,生成合约镜像与合约容器。

  1. 将生成好的trace.tar.gz 上传到 /root/fabric/scripts/fabric-samples/test-network 路径
  2. 编写 install.sh 合约安装脚本, chmod a+x install.sh,执行 ./install.sh
# install chaincode to peer0.org1
export CORE_PEER_TLS_ENABLED=true
export CORE_PEER_LOCALMSPID="Org1MSP"
export CORE_PEER_TLS_ROOTCERT_FILE

猜你喜欢

转载自blog.csdn.net/xjmtxwd24/article/details/123152714