Published on

fabric 通道-config文件

Authors
export ORDERER_CA=/opt/app/fabric/orderer/msp/tlscacerts/tlsca.orderer1.example.com-cert.pem
export CORE_PEER_TLS_ROOTCERT_FILE=$ORDERER_CA
export CORE_PEER_MSPCONFIGPATH=/root/raft_deploy/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp
export CORE_PEER_ADDRESS=peer0.org1.example.com:7051
export CORE_PEER_LOCALMSPID=OrdererMSP

peer channel fetch config sys-channel.pb -o orderer1.example.com:7050 -c syschannel --tls --cafile $ORDERER_CA

解码pb

configtxlator proto_decode --input sys-channel.pb --type common.Block > sys-channel.json
  • 系统通道主要需修改配置
  • 应用通道主要需修改配置