Hyperledger Composer 添加一个新节点

Hyperledger Composer add a new peer

我正在修改现有的 docker-compose.yml、crypto-config.yaml 和 configtx.yaml 以向位于 hlfv11 文件夹下的现有 hyperledger composer 示例添加一个额外的对等点fabric-tools/fabric-scripts.

我重新生成了所需的证书和创世块,它生成了对等容器,没有任何问题。

但是我很难将此点添加到频道。我修改了 startFabric.sh 以将此对等点加入频道,但是我收到以下消息的错误:

Error getting endorser client channel: endorser client failed to connect to peer1.org1.example.com:8051: failed to create a new connection: context deadline exceeded.

有人可以帮忙或建议吗?

我试图通过 PEER CHANELL JOIN 命令直接加入其他对等通道。它实际上需要通过新节点上的排序节点获取通道,然后才能加入。

代码更新如下:

# Create the channel
docker exec peer0.org1.example.com peer channel create -o 
orderer.example.com:7050 -c composerchannel -f 
/etc/hyperledger/configtx/composer-channel.tx

# Join peer0.org1.example.com to the channel.
docker exec -e "CORE_PEER_MSPCONFIGPATH= 
/etc/hyperledger/msp/users/Admin@org1.example.com/msp 
peer0.org1.example.com peer channel join -b composerchannel.block

# Create the channel
docker exec -e "CORE_PEER_MSPCONFIGPATH= 
/etc/hyperledger/msp/users/Admin@org1.example.com/msp" 
peer1.org1.example.com peer channel fetch config -o orderer.example.com:7050 
-c composerchannel

# Join peer1.org1.example.com to the channel.
docker exec -e "CORE_PEER_MSPCONFIGPATH= 
/etc/hyperledger/msp/users/Admin@org1.example.com/msp 
peer1.org1.example.com peer channel join -b composerchannel_config.block