2
A
回答
2
爲了讓每個組織具有多個錨點,您需要使用configtx.yaml
(例如,您應該在以下部分添加新的錨點:
Organizations:
- &Org1
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org1MSP
# ID to load the MSP definition as
ID: Org1MSP
MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
AnchorPeers:
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context
- Host: peer0.org1.example.com
Port: 7051
- Host: peer1.org1.example.com
Port: 7051
- &Org2
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org2MSP
# ID to load the MSP definition as
ID: Org2MSP
MSPDir: crypto-config/peerOrganizations/org2.example.com/msp
AnchorPeers:
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context
- Host: peer0.org2.example.com
Port: 7051
- Host: peer1.org2.example.com
Port: 7051
這將爲每個組織定義兩個錨點。接下來,您需要使用configtxgen
產生配置更新事務包括那些同行錨兩個機構單位:
configtxgen -profile TwoOrgsChannel -channelID mychannel -outputAnchorPeersUpdate=Org1MSPanchors.tx -asOrg=Org1MSP
configtxgen -profile TwoOrgsChannel -channelID mychannel -outputAnchorPeersUpdate=Org2MSPanchors.tx -asOrg=Org2MSP
要更新通道運行:
# updating anchors for Org1
CORE_PEER_ADDRESS=peer0.org.example.com peer channel update -f Org1MSPanchors.tx -c mychannel -o orderer.example.com:7050
分別對每個認可組織的同行。
相關問題
- 1. Algolia - 如何設置錨點
- 2. HTML多個錨點名稱
- 3. 滾動到多個錨點
- 4. 如何爲特定錨點設置偏移錨點函數?
- 5. 滾動到具有uRL中多個錨點的錨點,
- 6. 如何設置錨點形式的值
- 7. 如何設置錨點在CABasicanimation
- 8. 如何爲popoverPresentationController手動設置錨點
- 9. 給定一個URL如何找到錨點HTML錨點標記?
- 10. CGAffineTransformation設置錨點?
- 11. Live Peer Peer Swarm
- 12. 如何在WCF中爲多個服務配置一個端點?
- 13. 如何配置多個過濾器到一個終點
- 14. 如何在Rexster配置中將多個cassandra節點配置爲storage.backend?
- 15. 如何爲單個方案配置多個WCF綁定配置
- 16. 平滑滾動到多個錨點
- 17. WCF服務的多個端點配置
- 18. 多個站點綁定的WCF配置
- 19. 配置多個端點的WCF
- 20. 在多個端口上配置站點
- 21. Jenkins多個從節點配置
- 22. 如何選擇多個類別的跨度並放入錨點?
- 23. 如何防止多次點擊一個錨標籤按鈕
- 24. 如何更容易設置一個隨機href錨點?
- 25. 如何在sprak數據框中配置多個節點連接?
- 26. 如何爲lagom配置多個cassandra接觸點?
- 27. 我如何配置Openstack Swift和多個存儲節點
- 28. 如何將Hadoop配置文件同步到多個節點?
- 29. 如何添加一個錨點到「this.form.submit();」?
- 30. 如何創建一個錨點