diff --git a/orderer/consensus/etcdraft/chain.go b/orderer/consensus/etcdraft/chain.go index 4a4cd550a3b..51edb5147fc 100644 --- a/orderer/consensus/etcdraft/chain.go +++ b/orderer/consensus/etcdraft/chain.go @@ -1470,13 +1470,13 @@ func (c *Chain) ValidateConsensusMetadata(oldOrdererConfig, newOrdererConfig cha // This is a migration, so we have to validate the config change and make sure that endpoints per org are configured for _, org := range newOrdererConfig.Organizations() { if len(org.Endpoints()) == 0 { - c.logger.Warnf("illegal orderer config detected during consensus metadata validation: endpoints of org %s are missing", org.Name()) + c.logger.Panicf("illegal orderer config detected during consensus metadata validation: endpoints of org %s are missing", org.Name()) return errors.Errorf("illegal orderer config detected during consensus metadata validation: endpoints of org %s are missing", org.Name()) } } return nil } else { - c.logger.Warnf("illegal consensus type detected during consensus metadata validation: %s", newOrdererConfig.ConsensusType()) + c.logger.Panicf("illegal consensus type detected during consensus metadata validation: %s", newOrdererConfig.ConsensusType()) return errors.Errorf("illegal consensus type detected during consensus metadata validation: %s", newOrdererConfig.ConsensusType()) }