hyperledger-fabric - 为 Raft 生成 orderer genesis block 返回不明确的日志
问题描述
尝试通过以下命令为 Raft 生成创世块
./configtxgen -profile SampleMultiNodeEtcdRaft -channelID testchannel -outputBlock ./channel-artifacts/genesis.block
在输出中我看到
2019-08-17 15:40:19.453 CEST [common.tools.configtxgen] main -> INFO 001 Loading configuration
2019-08-17 15:40:19.528 CEST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft
2019-08-17 15:40:19.529 CEST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:20971520
2019-08-17 15:40:19.529 CEST [common.tools.configtxgen.localconfig] Load -> INFO 004 Loaded configuration: /Volumes/dr/hyperledger/testnetwork/configtx.yaml
2019-08-17 15:40:19.609 CEST [common.tools.configtxgen.localconfig] completeInitialization -> INFO 005 orderer type: solo
2019-08-17 15:40:19.609 CEST [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 006 Loaded configuration: /Volumes/dr/hyperledger/testnetwork/configtx.yaml
2019-08-17 15:40:19.612 CEST [common.tools.configtxgen] doOutputBlock -> INFO 007 Generating genesis block
2019-08-17 15:40:19.613 CEST [common.tools.configtxgen] doOutputBlock -> INFO 008 Writing genesis block
如您所见,步骤 INFO 002 表示它是 raft orderer 类型,但随后 INFO 005 表示它是单独的。为什么它有两个初始化和两个不同的排序器类型?我在某个地方错了吗?我使用来自 first-network 的 configtx.yaml 并没有在那里进行任何更改。使用超级账本 V1_4_2。
解决方案
Raft 共识协议在内部仅定义了单排序者类型。所以这些日志没有任何问题。一切正常,您可以继续进行。
推荐阅读
- amazon-web-services - 集群的 ec2 worker 有多少容量?
- oracle - 对表空间 'SYSTEM' ORA-00942 没有权限
- firebase-authentication - 使用 Firebase 进行无密码登录,从 PC 打开链接
- javascript - jQuery 从我提交的表单中获取表单名称
- reactjs - 将类添加到选定的选项
- ios - 无法创建 iPhone ...未知的运行时
- ios - 完全崩溃和日志没有帮助
- parse-cloud-code - Back4App 部署带有 .js 文件问题的文件夹
- sql - 除以我的查询中遇到的零错误
- javascript - 不知道为什么长度未定义