diff --git a/protoutil/proputils.go b/protoutil/proputils.go index 6445a17c70a..25e042bddb3 100644 --- a/protoutil/proputils.go +++ b/protoutil/proputils.go @@ -18,15 +18,6 @@ import ( "github.com/pkg/errors" ) -func validateChannelHeaderType(chdr *common.ChannelHeader, expectedTypes []common.HeaderType) error { - for _, t := range expectedTypes { - if common.HeaderType(chdr.Type) == t { - return nil - } - } - return errors.Errorf("invalid channel header type. expected one of %s, received %s", expectedTypes, common.HeaderType(chdr.Type)) -} - // CreateChaincodeProposal creates a proposal from given input. // It returns the proposal and the transaction id associated to the proposal func CreateChaincodeProposal(typ common.HeaderType, channelID string, cis *peer.ChaincodeInvocationSpec, creator []byte) (*peer.Proposal, string, error) {