diff --git a/orderer/consensus/etcdraft/chain.go b/orderer/consensus/etcdraft/chain.go index 0fe7e8d8d03..21f1ebe9eb7 100644 --- a/orderer/consensus/etcdraft/chain.go +++ b/orderer/consensus/etcdraft/chain.go @@ -150,7 +150,7 @@ func (c *Chain) checkConfigUpdateValidity(ctx *common.Envelope) error { switch chdr.Type { case int32(common.HeaderType_ORDERER_TRANSACTION): - return errors.Errorf("channel creation requests not supported yet") + return nil case int32(common.HeaderType_CONFIG): configEnv, err := configtx.UnmarshalConfigEnvelope(payload.Data) if err != nil { diff --git a/orderer/consensus/etcdraft/chain_test.go b/orderer/consensus/etcdraft/chain_test.go index 9f015e03553..1c6808b2153 100644 --- a/orderer/consensus/etcdraft/chain_test.go +++ b/orderer/consensus/etcdraft/chain_test.go @@ -474,9 +474,9 @@ var _ = Describe("Chain", func() { configSeq = 0 }) // BeforeEach block - It("should throw an error", func() { + It("should be able to create a channel", func() { err := chain.Configure(configEnv, configSeq) - Expect(err).To(MatchError("channel creation requests not supported yet")) + Expect(err).NotTo(HaveOccurred()) }) }) }) // Context block for type A config