Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ephemery config url and remove hardcoded config file #9155

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;
import java.net.URL;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -125,6 +126,15 @@
}

private static InputStream loadConfigurationFile(final String source) throws IOException {
if (Eth2Network.EPHEMERY.configName().equalsIgnoreCase(source)) {
try {
URL url = new URL("https://ephemery.dev/latest/metadata/config.yaml");
return url.openStream();
} catch (IOException e) {
throw new IOException("Failed to fetch Ephemery config from URL", e);
}
}

return getConfigLoader()
.load(source, CONFIG_PATH + source + ".yaml")
.orElseThrow(() -> new FileNotFoundException("Could not load spec config from " + source));
Expand Down

This file was deleted.