@@ -102,8 +102,7 @@ type Network struct {
102
102
Genesis * genesis.UnparsedConfig
103
103
104
104
// Configuration for primary network chains (P, X, C)
105
- // TODO(marun) Rename to PrimaryChainConfigs
106
- ChainConfigs map [string ]FlagsMap
105
+ PrimaryChainConfigs map [string ]FlagsMap
107
106
108
107
// Default configuration to use when creating new nodes
109
108
DefaultFlags FlagsMap
@@ -236,15 +235,15 @@ func (n *Network) EnsureDefaultConfig(log logging.Logger, avalancheGoPath string
236
235
}
237
236
238
237
// Ensure primary chains are configured
239
- if n .ChainConfigs == nil {
240
- n .ChainConfigs = map [string ]FlagsMap {}
238
+ if n .PrimaryChainConfigs == nil {
239
+ n .PrimaryChainConfigs = map [string ]FlagsMap {}
241
240
}
242
241
defaultChainConfigs := DefaultChainConfigs ()
243
242
for alias , chainConfig := range defaultChainConfigs {
244
- if _ , ok := n .ChainConfigs [alias ]; ! ok {
245
- n .ChainConfigs [alias ] = FlagsMap {}
243
+ if _ , ok := n .PrimaryChainConfigs [alias ]; ! ok {
244
+ n .PrimaryChainConfigs [alias ] = FlagsMap {}
246
245
}
247
- n .ChainConfigs [alias ].SetDefaults (chainConfig )
246
+ n .PrimaryChainConfigs [alias ].SetDefaults (chainConfig )
248
247
}
249
248
250
249
// Ensure runtime is configured
0 commit comments