@@ -199,12 +199,12 @@ func Main() {
199
199
// Extract system channel last config block
200
200
func extractSysChanLastConfig (lf blockledger.Factory , bootstrapBlock * cb.Block ) * cb.Block {
201
201
// Are we bootstrapping?
202
- num := len (lf .ChainIDs ())
203
- if num == 0 {
204
- logger .Info ("Bootstrapping because no existing chains " )
202
+ chainCount := len (lf .ChainIDs ())
203
+ if chainCount == 0 {
204
+ logger .Info ("Bootstrapping because no existing channels " )
205
205
return nil
206
206
}
207
- logger .Infof ("Not bootstrapping because of %d existing chains " , num )
207
+ logger .Infof ("Not bootstrapping because of %d existing channels " , chainCount )
208
208
209
209
systemChannelName , err := protoutil .GetChainIDFromBlock (bootstrapBlock )
210
210
if err != nil {
@@ -548,11 +548,11 @@ func extractBootstrapBlock(conf *localconfig.TopLevel) *cb.Block {
548
548
func initializeBootstrapChannel (genesisBlock * cb.Block , lf blockledger.Factory ) {
549
549
chainID , err := protoutil .GetChainIDFromBlock (genesisBlock )
550
550
if err != nil {
551
- logger .Fatal ("Failed to parse chain ID from genesis block:" , err )
551
+ logger .Fatal ("Failed to parse channel ID from genesis block:" , err )
552
552
}
553
553
gl , err := lf .GetOrCreate (chainID )
554
554
if err != nil {
555
- logger .Fatal ("Failed to create the system chain :" , err )
555
+ logger .Fatal ("Failed to create the system channel :" , err )
556
556
}
557
557
558
558
if err := gl .Append (genesisBlock ); err != nil {
@@ -650,7 +650,7 @@ func initializeMultichannelRegistrar(
650
650
if len (lf .ChainIDs ()) == 0 {
651
651
initializeBootstrapChannel (genesisBlock , lf )
652
652
} else {
653
- logger .Info ("Not bootstrapping because of existing chains " )
653
+ logger .Info ("Not bootstrapping because of existing channels " )
654
654
}
655
655
656
656
consenters := make (map [string ]consensus.Consenter )
0 commit comments