Skip to content

Commit

Permalink
Tidy up some peer channel create code
Browse files Browse the repository at this point in the history
Change-Id: I2066d2ce5260ebf58798aaac12758eca57375685
Signed-off-by: Yacov Manevich <yacovm@il.ibm.com>
  • Loading branch information
yacovm committed Feb 24, 2017
1 parent bb5a53f commit adb66f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 4 additions & 5 deletions common/configtx/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ limitations under the License.
package configtx

import (
"fmt"

"github.com/golang/protobuf/proto"
configtxorderer "github.com/hyperledger/fabric/common/configvalues/channel/orderer"
"github.com/hyperledger/fabric/common/util"
"github.com/hyperledger/fabric/msp"
cb "github.com/hyperledger/fabric/protos/common"
ab "github.com/hyperledger/fabric/protos/orderer"
"github.com/hyperledger/fabric/protos/utils"

"fmt"

"github.com/golang/protobuf/proto"
"github.com/hyperledger/fabric/msp"
)

const (
Expand Down
6 changes: 1 addition & 5 deletions peer/channel/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ func createCmd(cf *ChannelCmdFactory) *cobra.Command {
}

func createChannelFromDefaults(cf *ChannelCmdFactory) (*cb.Envelope, error) {
oTemplate := configtxtest.OrdererTemplate()
oOrgTemplate := configtxtest.OrdererOrgTemplate()
appOrgTemplate := configtxtest.ApplicationOrgTemplate()

chCrtTemp := configtx.NewCompositeTemplate(oTemplate, oOrgTemplate, appOrgTemplate)
chCrtTemp := configtxtest.CompositeTemplate()

signer, err := mspmgmt.GetLocalMSP().GetDefaultSigningIdentity()
if err != nil {
Expand Down

0 comments on commit adb66f7

Please sign in to comment.