File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,8 +205,10 @@ export function getDefaultFeatureNames(stack: Stack): FeatureName[] {
205205 . map ( ( [ name ] ) => name )
206206}
207207
208- // Available installation modes per stack. `default` (keep only default:true features) is Canton-only:
209- // EVM has no default:false features, so default would be identical to full there.
208+ // Available installation modes per stack. `default` (keep only default:true features) is offered
209+ // only when the stack has at least one opt-out (default:false) feature; otherwise it would be
210+ // identical to `full`. Today that means Canton only (EVM's features are all default:true).
210211export function getInstallationModes ( stack : Stack ) : InstallationType [ ] {
211- return stack === 'canton' ? [ 'default' , 'full' , 'custom' ] : [ 'full' , 'custom' ]
212+ const hasOptOutFeature = getDefaultFeatureNames ( stack ) . length < getFeatureNames ( stack ) . length
213+ return hasOptOutFeature ? [ 'default' , 'full' , 'custom' ] : [ 'full' , 'custom' ]
212214}
You can’t perform that action at this time.
0 commit comments