$ORDERER_CA –channelID channeldemo –name becc –version 1
fmt.Printf(“Error create be chaincode: %s”, err.Error())
}
peer channel join -b channeldemo.block –tls –cafile $ORDERER_CA–signature-policy “OR(‘Burakcan1MSP.peer’, ‘Burakcan2MSP.peer’)” product := new(Product)
–init-required –package-id $CC_PACKAGE_ID –sequence 1
crypto-config/ordererOrganizations/burakcan-network.com/orderers
界说和陈设链码
tls/ca.crt” -e “CORE_PEER_MSPCONFIGPATH=/opt/gopath/
–peerAddresses peer0.be2.burakcan-network.com:7051
peer lifecycle chaincode queryinstalled}
if err := chaincode.Start(); err != nil {
docker-compose -f docker-compose-cli.yaml down我们只能会见CLI容器中/opt/gopath/src/chain路径利用的目次。除了通过下面界说的方法建设链码之外,我们还可以在../chaincode/be_chaincode目次下直接建设be.go文件。
}
封锁网络后,,利用以下呼吁有助于制止
channeldemo -f /opt/gopath/fabric-samples/burakcan-network/
channeldemo -f /opt/gopath/fabric-samples/burakcan-network/
func (s *SmartContract) InitLedger(ctx contractapi.TransactionContextInterface)
burakcan-network/crypto-config/peerOrganizations/
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。