public Optional<List<String>> getBootNodes() {
    final Optional<ArrayNode> bootNodesArray =
        JsonUtil.getArrayNode(discoveryConfigRoot, ENODES_KEY);
    if (bootNodesArray.isEmpty()) {
      return Optional.empty();
    }
    final List<String> bootNodes = new ArrayList<>();
    bootNodesArray
        .get()
        .elements()
        .forEachRemaining(
            bootNodeElement -> {
              if (!bootNodeElement.isTextual()) {
                throw new IllegalArgumentException(
                    ENODES_KEY + " does not contain a string: " + bootNodeElement);
              }
              bootNodes.add(bootNodeElement.asText());
            });
    return Optional.of(bootNodes);
  }
Gets boot nodes.

@return optional list of boot nodes
config/src/main/java/org/hyperledger/besu/config/DiscoveryOptions.java