我使用此文档在亚马逊管理的区块链中设置了超级账本结构网络。我把它用作休息服务器。我在这里将对等名称配置为peer1。它工作正常。后来我使用这个文件又增加了一个成员。现在成员 1 和成员 2 应该为交易背书。
docker exec cli peer chaincode instantiate -o $ORDERER \
-C ourchannel -n myjointcc -v v0 \
-c '{"Args":["init","a","100","b","200"]}' \
--cafile /opt/home/managedblockchain-tls-chain.pem --tls \
-P "AND ('Member1ID.member','Member2ID.member')"
现在我将此配置文件编辑为"peers":["peer1", "peer2"]
. 但我收到以下错误,
[2020-09-02 05:54:20.915] [ERROR] invoke-chaincode - Error: Peer with name "peer2" not assigned to this channel
at Channel._getTargets (/var/www/html/network/node_modules/fabric-client/lib/Channel.js:3515:13)
at Channel.sendTransactionProposal (/var/www/html/network/node_modules/fabric-client/lib/Channel.js:2791:26)
at Object.invokeChaincode (/var/www/html/network/app/invoke-transaction.js:41:31)
at <anonymous>
[2020-09-02 05:54:20.915] [ERROR] invoke-chaincode - Failed to invoke chaincode. cause:Error: Peer with name "peer2" not assigned to this channel
我应该用什么代替 peer2?帮我解决这个问题。