@@ -264,6 +264,13 @@ export class ProfileManager {
264
264
path . join ( stagingDir , 'templates' , 'bootstrap.properties' ) ,
265
265
yamlRoot ,
266
266
) ;
267
+
268
+ const genesisNetworkJson = path . join ( stagingDir , 'genesis-network.json' ) ;
269
+
270
+ fs . writeFileSync ( genesisNetworkJson , genesisNetworkData . toJSON ( ) ) ;
271
+
272
+ this . _setFileContentsAsValue ( 'hedera.configMaps.genesisNetworkJson' , genesisNetworkJson , yamlRoot ) ;
273
+
267
274
if ( this . configManager . getFlag ( flags . applicationEnv ) ) {
268
275
this . _setFileContentsAsValue (
269
276
'hedera.configMaps.applicationEnv' ,
@@ -371,15 +378,6 @@ export class ProfileManager {
371
378
return this . writeToYaml ( cachedValuesFile , yamlRoot ) ;
372
379
}
373
380
374
- public prepareValuesForGenesisNetwork ( genesisNetworkData : GenesisNetworkDataConstructor ) : Promise < string > {
375
- const yamlRoot = { } ;
376
-
377
- this . _setValue ( 'hedera.configMaps.genesisNetworkJson' , genesisNetworkData . toJSON ( ) , yamlRoot ) ;
378
-
379
- const cachedValuesFile = path . join ( this . cacheDir , 'genesis-network.yaml' ) ;
380
- return this . writeToYaml ( cachedValuesFile , yamlRoot ) ;
381
- }
382
-
383
381
/**
384
382
* Prepare a values file for rpc-relay Helm chart
385
383
* @param profileName - resource profile name
@@ -525,7 +523,6 @@ export class ProfileManager {
525
523
526
524
//? Add gossip endpoints
527
525
nodeDataWrapper . addGossipEndpoint ( externalIP , externalPort ) ;
528
- nodeDataWrapper . addGossipEndpoint ( internalIP , internalPort ) ;
529
526
530
527
//? Add service endpoints
531
528
nodeDataWrapper . addServiceEndpoint ( internalIP , internalPort ) ;
0 commit comments