File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Organizations:{{ range .PeerOrgs }}
54
54
Channel: &ChannelDefaults
55
55
Capabilities:
56
56
V2_0: true
57
- Policies:
57
+ Policies: &DefaultPolicies
58
58
Readers:
59
59
Type: ImplicitMeta
60
60
Rule: ANY Readers
@@ -67,7 +67,15 @@ Channel: &ChannelDefaults
67
67
68
68
Profiles:{{ range .Profiles }}
69
69
{{ .Name }}:
70
+ {{- if .ChannelCapabilities}}
71
+ Capabilities:{{ range .ChannelCapabilities}}
72
+ {{ . }}: true
73
+ {{- end}}
74
+ Policies:
75
+ <<: *DefaultPolicies
76
+ {{- else }}
70
77
<<: *ChannelDefaults
78
+ {{- end}}
71
79
{{- if .Orderers }}
72
80
Orderer:
73
81
OrdererType: {{ $w.Consensus.Type }}
Original file line number Diff line number Diff line change @@ -121,11 +121,12 @@ func (p *Peer) Anchor() bool {
121
121
122
122
// A profile encapsulates basic information for a configtxgen profile.
123
123
type Profile struct {
124
- Name string `yaml:"name,omitempty"`
125
- Orderers []string `yaml:"orderers,omitempty"`
126
- Consortium string `yaml:"consortium,omitempty"`
127
- Organizations []string `yaml:"organizations,omitempty"`
128
- AppCapabilities []string `yaml:"appcapabilities,omitempty"`
124
+ Name string `yaml:"name,omitempty"`
125
+ Orderers []string `yaml:"orderers,omitempty"`
126
+ Consortium string `yaml:"consortium,omitempty"`
127
+ Organizations []string `yaml:"organizations,omitempty"`
128
+ AppCapabilities []string `yaml:"app_capabilities,omitempty"`
129
+ ChannelCapabilities []string `yaml:"channel_capabilities,omitempty"`
129
130
}
130
131
131
132
// Network holds information about a fabric network.
You can’t perform that action at this time.
0 commit comments