Skip to content

Commit

Permalink
fix config provider
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr committed Dec 13, 2024
1 parent 7de9aa4 commit 071e38b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public GetSpec(final DataProvider dataProvider) {
@Override
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
try {
final SpecConfigData responseContext = new SpecConfigData(configProvider.getGenesisSpec());
final SpecConfigData responseContext = new SpecConfigData(configProvider.getSpecConfig());
request.respondOk(responseContext.getConfigMap());
} catch (JsonProcessingException e) {
String message =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ public ConfigProvider(final Spec spec) {
}

public Map<String, String> getConfig() {
final SpecConfigData configuration = new SpecConfigData(spec.getGenesisSpecConfig());
final SpecConfigData configuration =
new SpecConfigData(spec.getSpecConfigAndParent().specConfig());
return configuration.getConfigMap();
}

public SpecConfig getGenesisSpec() {
return spec.atEpoch(UInt64.ZERO).getConfig();
public SpecConfig getSpecConfig() {
return spec.getSpecConfigAndParent().specConfig();
}

public static String formatValue(final Object v) {
Expand Down

0 comments on commit 071e38b

Please sign in to comment.