Jim*_*een 6 hyperledger hyperledger-fabric
从Fabric文档create-join-channel,当我执行命令时
peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
Run Code Online (Sandbox Code Playgroud)
它会返回以下消息的错误代码段:
2017-08-16 01:34:13.902 UTC [msp] GetLocalMSP - > DEBU 00c返回现有的本地MSP 2017-08-16 01:34:13.902 UTC [msp] GetDefaultSigningIdentity - > DEBU 00d获取默认签名身份2017-08- 16 01:34:13.902 UTC [msp/identity]签名 - > DEBU 00e标志:明文:0AC3060A1508021A060895C2CECC0522 ... 7E2E59E3CFD14AC765C92FBF36614E79 2017-08-16 01:34:13.902 UTC [msp/identity]签名 - > DEBU 00f签名:摘要:FA75790826EF23E1A7C46AD3B9AE0DB7321DC271B8BE93A29BAC2F6EEACBB8B0错误:出现意外状态:BAD_REQUEST用法:对等通道创建[标志]
标志:
comamands如下:
cryptogen生成--config =./ crypto-config.yaml
export FABRIC_CFG_PATH = $ PWD
configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
导出CHANNEL_NAME = mychannel
configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $ CHANNEL_NAME
configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID $ CHANNEL_NAME -asOrg Org1MSP
configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID $ CHANNEL_NAME -asOrg Org2MSP
CHANNEL_NAME = $ CHANNEL_NAME TIMEOUT = 10000 docker-compose -f docker-compose-cli.yaml up -d
docker exec -it cli bash
导出CHANNEL_NAME = mychannel
peer channel create -o orderer.example.com:7050 -c $ CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $ CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/对等体/加密/ ordererOrganizations/example.com/orderers/orderer.example.com/MSP/tlscacerts/tlsca.example.com-cert.pem
请确保频道名称是新名称,并且网络中不存在使用该名称的现有频道。
例如,如果您已经使用 创建了一个通道,请在创建另一个通道之前CHANNEL_NAME=mychannel
更改变量,方法是运行类似export CHANNEL_NAME=mychannelanother
归档时间: |
|
查看次数: |
3819 次 |
最近记录: |