hyperledger-fabric - 网络中是否可以有一个对等组织?
问题描述
我正在建立一个小架构来使用 Hyperledger Fabric 测试一些东西。
有 3 个 Orgs,其中 2 个由每个对等点组成(可用性不是测试的主要关注点),我收到一些关于八卦的警告:无法与 0.0.0.0:7051 建立连接,对于两个单个对等点都相同.
2019-10-02 15:18:49.667 UTC [gossip.discovery] func1 -> WARN 02e Could not
connect to Endpoint: 127.0.0.1:7051, InternalEndpoint: 127.0.0.1:7051,
PKI ID: <nil>, Metadata: : context deadline exceeded
我开始怀疑只有一个对等的 Org 是否至少是可行的,找不到任何关于如何在 docker-compose.yaml 中选择 env 设置的示例或任何指南,或者任何表明你不能拥有单一的同行组织。
有什么提示吗?
谢谢
解决方案
warning on gossip: can't establish connection with 0.0.0.0:7051
是因为你没有更新锚点交易,请通过提供anchor.tx来更新交易
检查:https ://hyperledger-fabric.readthedocs.io/en/release-1.1/glossary.html#anchor-peer
Anchor peers 用于建立跨组织通信
生成anchorpeer.tx的命令:
configtxgen -outputAnchorPeersUpdate anchor_peer_tx.pb -profile SampleSingleMSPChannelV1_1 -asOrg Org1
将配置更新事务输出到 anchor_peer_tx.pb,它根据 configtx.yaml 为组织 Org1 设置锚点,如配置文件 SampleSingleMSPChannelV1_1 中定义的那样。
推荐阅读
- python - 如何避免 matplotlib pyplot.plot 中的曲折线?
- javascript - 网站页面加载时如何调用 API?
- arm - 使用来自接口的唯一指针作为类的属性时出错
- java - 从 java 调用 nsupdate
- python - 没有名为“pytmx”的模块,但已安装 pytmx
- r - 按变量组聚合列
- javascript - 从 ToastUI(显示降价文本)编辑器获取 html 以保存在数据库中
- css - flexbox不包装项目
- erlang - rebar3,主管,行为(应用程序)
- google-apps-script - 将 setFormula 方法与 appendRow 一起使用