【问题标题】:Hyperledger Composer add a new peerHyperledger Composer 添加一个新的节点
【发布时间】:2018-09-30 03:39:31
【问题描述】:

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

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

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

获取背书客户端频道时出错:背书客户端无法连接到 peer1.org1.example.com:8051:无法创建新连接:超出上下文截止日期。

有人可以帮忙或建议吗?

【问题讨论】:

    标签: docker hyperledger-fabric hyperledger hyperledger-composer


    【解决方案1】:

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

    代码更新如下:

    # 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
    

    【讨论】:

    • 感谢您发布您的解决方案,这有助于我将同行添加到我们的网络中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-01
    • 1970-01-01
    • 2017-12-24
    • 1970-01-01
    相关资源
    最近更新 更多