public static EthNetworkConfig getNetworkConfig(final NetworkName networkName) {
    final URL genesisSource = jsonConfigSource(networkName.getGenesisFile());
    final GenesisConfig genesisConfig = GenesisConfig.fromSource(genesisSource);
    final GenesisConfigOptions genesisConfigOptions = genesisConfig.getConfigOptions();
    final Optional<List<String>> rawBootNodes =
        genesisConfigOptions.getDiscoveryOptions().getBootNodes();
    final List<EnodeURL> bootNodes =
        rawBootNodes
            .map(
                strings ->
                    strings.stream().map(EnodeURLImpl::fromString).collect(Collectors.toList()))
            .orElse(Collections.emptyList());

    return new EthNetworkConfig(
        genesisConfig,
        networkName.getNetworkId(),
        bootNodes,
        genesisConfigOptions.getDiscoveryOptions().getDiscoveryDnsUrl().orElse(null));
  }
Gets network config.

@param networkName the network name
@return the network config
app/src/main/java/org/hyperledger/besu/cli/config/EthNetworkConfig.java