diff --git a/go.mod b/go.mod index 897db2deb23..cc345b61989 100644 --- a/go.mod +++ b/go.mod @@ -18,7 +18,7 @@ require ( github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 github.com/hyperledger/fabric-chaincode-go v0.0.0-20220713164125-8f0791c989d7 - github.com/hyperledger/fabric-config v0.2.0 + github.com/hyperledger/fabric-config v0.2.1 github.com/hyperledger/fabric-lib-go v1.0.0 github.com/hyperledger/fabric-protos-go v0.3.0 github.com/kr/pretty v0.3.1 diff --git a/go.sum b/go.sum index c78f38c620b..3b9ce5b291e 100644 --- a/go.sum +++ b/go.sum @@ -368,8 +368,8 @@ github.com/hyperledger/fabric-amcl v0.0.0-20210603140002-2670f91851c8 h1:BCR8ZlO github.com/hyperledger/fabric-amcl v0.0.0-20210603140002-2670f91851c8/go.mod h1:X+DIyUsaTmalOpmpQfIvFZjKHQedrURQ5t4YqquX7lE= github.com/hyperledger/fabric-chaincode-go v0.0.0-20220713164125-8f0791c989d7 h1:w0VDGxvAmu8WZEfAhLn9M4SJg5xWMFIxUokfflx1MaU= github.com/hyperledger/fabric-chaincode-go v0.0.0-20220713164125-8f0791c989d7/go.mod h1:9HhzkKkb8qteXBbHEQ3J/FHBVJRDJAgYIPtKPIl3Dt8= -github.com/hyperledger/fabric-config v0.2.0 h1:5cvrFJQ7YbKxj74pjV7LuVuP5pZHScrkpXRlPt36t80= -github.com/hyperledger/fabric-config v0.2.0/go.mod h1:1ZfjDrsuMoM4IPKezQgTByy2vXUj8bgTXaOXaGXK5O4= +github.com/hyperledger/fabric-config v0.2.1 h1:CsReuxvi5c5NUyKKQOIVbHux32o+XtmDNceYLYjycxo= +github.com/hyperledger/fabric-config v0.2.1/go.mod h1:1ZfjDrsuMoM4IPKezQgTByy2vXUj8bgTXaOXaGXK5O4= github.com/hyperledger/fabric-lib-go v1.0.0 h1:UL1w7c9LvHZUSkIvHTDGklxFv2kTeva1QI2emOVc324= github.com/hyperledger/fabric-lib-go v1.0.0/go.mod h1:H362nMlunurmHwkYqR5uHL2UDWbQdbfz74n8kbCFsqc= github.com/hyperledger/fabric-protos-go v0.0.0-20210911123859-041d13f0980c/go.mod h1:xVYTjK4DtZRBxZ2D9aE4y6AbLaPwue2o/criQyQbVD0= diff --git a/vendor/github.com/hyperledger/fabric-config/protolator/protoext/ordererext/configuration.go b/vendor/github.com/hyperledger/fabric-config/protolator/protoext/ordererext/configuration.go index e220a509305..6c473501cf3 100644 --- a/vendor/github.com/hyperledger/fabric-config/protolator/protoext/ordererext/configuration.go +++ b/vendor/github.com/hyperledger/fabric-config/protolator/protoext/ordererext/configuration.go @@ -9,6 +9,8 @@ package ordererext import ( "fmt" + "github.com/hyperledger/fabric-protos-go/orderer/smartbft" + "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes/empty" "github.com/hyperledger/fabric-protos-go/common" @@ -80,6 +82,8 @@ func (ct *ConsensusType) VariablyOpaqueFieldProto(name string) (proto.Message, e switch ct.Type { case "etcdraft": return &etcdraft.ConfigMetadata{}, nil + case "BFT": + return &smartbft.Options{}, nil default: return &empty.Empty{}, nil } @@ -146,6 +150,8 @@ func (docv *DynamicOrdererConfigValue) StaticallyOpaqueFieldProto(name string) ( return &orderer.ChannelRestrictions{}, nil case "Capabilities": return &common.Capabilities{}, nil + case "Orderers": + return &common.Orderers{}, nil default: return nil, fmt.Errorf("unknown Orderer ConfigValue name: %s", docv.name) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 147a6bf998b..aef3054475b 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -217,7 +217,7 @@ github.com/hyperledger/fabric-chaincode-go/pkg/statebased github.com/hyperledger/fabric-chaincode-go/shim github.com/hyperledger/fabric-chaincode-go/shim/internal github.com/hyperledger/fabric-chaincode-go/shimtest -# github.com/hyperledger/fabric-config v0.2.0 +# github.com/hyperledger/fabric-config v0.2.1 ## explicit; go 1.20 github.com/hyperledger/fabric-config/configtx github.com/hyperledger/fabric-config/configtx/internal/policydsl