diff --git a/orderer/common/cluster/replication.go b/orderer/common/cluster/replication.go index 3105c33f407..0938cf6d977 100644 --- a/orderer/common/cluster/replication.go +++ b/orderer/common/cluster/replication.go @@ -565,6 +565,11 @@ func (ci *ChainInspector) Channels() []ChannelGenesisBlock { continue } + if _, exist := channels[channel]; exist { + ci.Logger.Warnf("Block %d attempts to create an existing channel [%s], ignore", seq, channel) + continue + } + ci.Logger.Info("Block", seq, "contains channel", channel) channels[channel] = ChannelGenesisBlock{ ChannelName: channel,