首页 > 解决方案 > 为 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。

标签: hyperledger-fabrichyperledger

解决方案


Raft 共识协议在内部仅定义了单排序者类型。所以这些日志没有任何问题。一切正常,您可以继续进行。


推荐阅读